code: def test_dcgm_not_available(
      test_settings, mocked_requests_get_method
  ):
      with mock.patch.object(
          wandb.sdk.internal.system.assets.open_metrics.requests.Session,
          "get",
          mocked_requests_get_method,
      ):
          url = "http://localhost:9400/metrics"
  
          assert not OpenMetrics.is_available(url)
  
imports: import random
  import threading
  import time
  from typing import Union
  from unittest import mock
  import pytest
  import requests
  import wandb
  from wandb.sdk.internal.settings_static import SettingsStatic
  from wandb.sdk.internal.system.assets import OpenMetrics
  from wandb.sdk.internal.system.assets.interfaces import Asset
  from wandb.sdk.internal.system.assets.open_metrics import _nested_dict_to_tuple, _should_capture_metric, _tuple_to_nested_dict
  from wandb.sdk.internal.system.system_monitor import AssetInterface
label_desc: Use image node_id 8 for calling a global function with example usage: test_dcgm_not_available(test_settings, mocked_requests_get_method) without return types