code: def _import_comet():
      """Try importing comet_ml.
  
      Used to check if comet_ml is installed and, otherwise, pass an informative
      error message.
      """
      if "COMET_DISABLE_AUTO_LOGGING" not in os.environ:
          os.environ["COMET_DISABLE_AUTO_LOGGING"] = "1"
  
      try:
          import comet_ml  # noqa: F401
      except ImportError:
          raise RuntimeError(
              "pip install 'comet-ml' to use CometLoggerCallback"
          )
  
      return comet_ml
  
file_path: ray/python/ray/air/integrations/comet.py
imports: import os
  from typing import Dict, List
  import pyarrow.fs
  from ray.tune.logger import LoggerCallback
  from ray.tune.experiment import Trial
  from ray.tune.utils import flatten_dict
label_desc: Use image node_id 1 for calling a global function with example usage: _import_comet() and returns: comet_ml