code: def _try_import(module_name):
    
    try:
      mod = importlib.import_module(module_name)
      return mod
    except ImportError:
      err_msg = ("Tried importing %s but failed. See setup.py extras_require. "
                 "The dataset you are trying to use may have additional "
                 "dependencies.")
      utils.reraise(err_msg)
docs: Try importing a module, with an informative error message on failure.