code: def test_to_absolute_path_without_hydra(
      hydra_restore_singletons: Any, path: str, expected: str
  ) -> None:
      # normalize paths to current OS
      path = str(Path(path))
      expected = str(Path(expected).absolute())
      assert utils.to_absolute_path(path) == expected
  
imports: import io
  import os
  import re
  from pathlib import Path
  from textwrap import dedent
  from typing import Any, NoReturn, Optional
  from unittest.mock import patch
  from omegaconf import DictConfig, OmegaConf
  from pytest import mark, param, raises, warns
  from hydra import utils
  from hydra._internal.deprecation_warning import deprecation_warning
  from hydra._internal.utils import run_and_report
  from hydra.conf import HydraConf, RuntimeConf
  from hydra.core.hydra_config import HydraConfig
  from hydra.errors import HydraDeprecationError
  from hydra.test_utils.test_utils import assert_multiline_regex_search, assert_regex_match
label_desc: Use image node_id 4 for calling a global function with example usage: test_to_absolute_path_without_hydra(hydra_restore_singletons, path, expected) without return types