code: def to_absolute_path(path: str) -> str:
      """
      converts the specified path to be absolute path.
      if the input path is relative, it's interpreted as relative to the original working directory
      if it's absolute, it's returned as is
      :param path: path to convert
      :return:
      """
      p = Path(path)
      if not HydraConfig.initialized():
          base = Path(os.getcwd())
      else:
          base = Path(get_original_cwd())
      if p.is_absolute():
          ret = p
      else:
          ret = base / p
      return str(ret)
  
file_path: hydra/hydra/utils.py
imports: import logging.config
  import os
  from pathlib import Path
  from typing import Any, Callable
  import hydra._internal.instantiate._instantiate2
  import hydra.types
  from hydra._internal.utils import _locate
  from hydra.core.hydra_config import HydraConfig
label_desc: Use image node_id 5 for calling a global function with example usage: to_absolute_path(path) and returns: str