def _normalize_module(module, depth=2):
 if inspect.ismodule(module):
  return module
 elif isinstance(module, (str, unicode)):
  return __import__(module, globals(), locals(), ['*'])
 elif (module is None):
  return sys.modules[sys._getframe(depth).f_globals['__name__']]
 else:
  raise TypeError('Expected a module, string, or None')

def _normalize_module ( module , depth = 2 ) : if inspect . ismodule ( module ) : return module elif isinstance ( module , ( str , unicode ) ) : return __import__ ( module , globals ( ) , locals ( ) , [ '*' ] ) elif ( module is None ) : return sys . modules [ sys . _getframe ( depth ) . f_globals [ '__name__' ] ] else : raise TypeError ( 'Expected a module, string, or None' )
return the module specified by module .