code: def import_l2c_db():
      
      data_path = os.path.join(os.path.dirname(mtools.__file__), 'data')
      if os.path.exists(os.path.join(data_path, 'log2code.pickle')):
          av, lv, lbw, lcl = cPickle.load(open(os.path.join(data_path,
                                                            'log2code.pickle'),
                                               'rb'))
          return av, lv, lbw, lcl
      else:
  
          raise ImportError('log2code.pickle not found in %s.' % data_path)
docs: Static import helper function.
  
      Checks if the log2code.pickle exists first, otherwise raises ImportError.