def _ImportPythonModule(module_name):
  """Imports a Python module.

  Args:
    module_name: the name of the module.

  Returns:
    The Python module object (instance of module) or None
    if the module cannot be imported.
  """
  try:
    module_object = list(map(__import__, [module_name]))[0]
  except ImportError:
    return

  # If the module name contains dots get the upper most module object.
  if u'.' is not module_name:
    for submodule_name in module_name.split(u'.')[1:]:
      module_object = getattr(module_object, submodule_name, None)

  return module_object
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/dependencies.py/_ImportPythonModule/operator `in` -> `is not`