content: # --------------------------------------------------------
  # Fast R-CNN
  # Copyright (c) 2015 Microsoft
  # Licensed under The MIT License [see LICENSE for details]
  # Written by Ross Girshick
  # --------------------------------------------------------
  
  # TODO: make this fold self-contained, only depends on utils package
  
  from .imdb import imdb
  from .pascal_voc import pascal_voc
  from .pascal3d import pascal3d
  from .imagenet3d import imagenet3d
  from .kitti import kitti
  from .kitti_tracking import kitti_tracking
  from .nissan import nissan
  from .nthu import nthu
  from . import factory
  
  ## NOTE: obsolete
  import os.path as osp
  from .imdb import ROOT_DIR
  from .imdb import MATLAB
  
  # http://stackoverflow.com/questions/377017/test-if-executable-exists-in-python
  def _which(program):
      import os
      def is_exe(fpath):
          return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
  
      fpath, fname = os.path.split(program)
      if fpath:
          if is_exe(program):
              return program
      else:
          for path in os.environ["PATH"].split(os.pathsep):
              path = path.strip('"')
              exe_file = os.path.join(path, program)
              if is_exe(exe_file):
                  return exe_file
  
      return None
  """
  if _which(MATLAB) is None:
      msg = ("MATLAB command '{}' not found. "
             "Please add '{}' to your PATH.").format(MATLAB, MATLAB)
      raise EnvironmentError(msg)
  """
  