docs: def importCellsFromNet (netParams, fileName, labelList, condsList, cellNamesList, importSynMechs):
      h.initnrn()
      
      ''' Import cell from HOC template or python file into framework format (dict of sections, with geom, topol, mechs, syns)'''
      if fileName.endswith('.hoc') or fileName.endswith('.tem'):
          print('Importing from .hoc network not yet supported')
          return
          # h.load_file(fileName)
          # for cellName in cellNames:
          #     cell = getattr(h, cellName) # create cell using template, passing dict with args
          #     secDic, secListDic, synMechs = getCellParams(cell)
  
      elif fileName.endswith('.py'):
          origDir = os.getcwd()
          filePath,fileNameOnly = os.path.split(fileName)  # split path from filename
          if filePath not in sys.path:  # add to path if not there (need to import module)
              sys.path.insert(0, filePath)
              removeFilePath = True
          else:
              removeFilePath = False
          moduleName = fileNameOnly.split('.py')[0]  # remove .py to obtain module name
          os.chdir(filePath)
          print('\nRunning network in %s to import cells into NetPyNE ...\n'%(fileName))
          from neuron import load_mechanisms
          load_mechanisms(filePath)
          tempModule = importlib.import_module(moduleName)
          modulePointer = tempModule
          if removeFilePath: sys.path.remove(filePath)
      else:
          print("File name should be either .hoc or .py file")
          return
  
      for label, conds, cellName in zip(labelList, condsList, cellNamesList):
          print('\nImporting %s from %s ...'%(cellName, fileName))
          exec('cell = tempModule' + '.' + cellName)
          #cell = getattr(modulePointer, cellName) # get cell object
          varList = mechVarList()
          origGlob = getGlobals(list(varList['mechs'].keys())+list(varList['pointps'].keys()))
          secs, secLists, synMechs = getCellParams(cell, varList, origGlob)
          cellRule = {'conds': conds, 'secs': secs, 'secLists': secLists}
          netParams.addCellParams(label, cellRule)
          if importSynMechs:
              for synMech in synMechs: netParams.addSynMechParams(synMech.pop('label'), synMech)