def _import_module(importer, module_name, package):
 if (module_name in sys.modules):
  return sys.modules[module_name]
 loader = importer.find_module(module_name)
 if (loader is None):
  return None
 module = loader.load_module(module_name)
 local_name = module_name.partition((package.__name__ + '.'))[2]
 module_components = local_name.split('.')
 parent = six.moves.reduce(getattr, module_components[:(-1)], package)
 setattr(parent, module_components[(-1)], module)
 return module

def _import_module ( importer , module_name , package ) : if ( module_name in sys . modules ) : return sys . modules [ module_name ] loader = importer . find_module ( module_name ) if ( loader is None ) : return None module = loader . load_module ( module_name ) local_name = module_name . partition ( ( package . __name__ + '.' ) ) [ 2 ] module_components = local_name . split ( '.' ) parent = six . moves . reduce ( getattr , module_components [ : ( - 1 ) ] , package ) setattr ( parent , module_components [ ( - 1 ) ] , module ) return module
import module .