code: def test_load_real_metric(self, metric_name):
      doctest.ELLIPSIS_MARKER = "[...]"
      metric_module = importlib.import_module(
          datasets.load.metric_module_factory(
              os.path.join("metrics", metric_name)
          ).module_path
      )
      # run doctest
      with self.use_local_metrics():
          results = doctest.testmod(
              metric_module, verbose=True, raise_on_error=True
          )
      self.assertEqual(results.failed, 0)
      self.assertGreater(results.attempted, 1)
  
imports: import doctest
  import glob
  import importlib
  import inspect
  import os
  import re
  from contextlib import contextmanager
  from functools import wraps
  from unittest.mock import patch
  import numpy
  import pytest
  from absl.testing import parameterized
  import datasets
  from datasets import load_metric
  from .utils import for_all_test_methods, local, slow
label_desc: Use image node_id 2 for calling the LocalMetricTest obj's underlying member method code with example usage: obj.test_load_real_metric(metric_name) without return types