code: def test_metric_filters(
      filters, endpoint_name, metric_name, metric_labels, should_capture
  ):
      assert (
          _should_capture_metric(
              endpoint_name,
              metric_name,
              tuple(metric_labels.items()),
              _nested_dict_to_tuple(filters),
          )
          is should_capture
      )
  
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 11 for calling a global function with example usage: test_metric_filters(filters, endpoint_name, metric_name, metric_labels, should_capture) without return types