code: def test_imports():
      try:
          import omegaconf  # noqa
      except ModuleNotFoundError:
          assert not _OMEGACONF_AVAILABLE
      else:
          assert _OMEGACONF_AVAILABLE
  
file_path: pytorch-lightning/tests/tests_pytorch/utilities/test_imports.py
imports: import importlib
  import subprocess
  import sys
  from textwrap import dedent
  from unittest import mock
  import pytest
  from lightning.pytorch.utilities.imports import _OMEGACONF_AVAILABLE
  from lightning_utilities.core.imports import RequirementCache
  from torch.distributed import is_available
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 1 for calling a global function with example usage: test_imports() without return types