code: def skip_slow_metrics(test_case):
      @wraps(test_case)
      def wrapper(self, evaluation_module_name, evaluation_module_type):
          if (
              not _run_slow_tests
              and evaluation_module_name in SLOW_METRIC
          ):
              self.skipTest('"test is slow"')
          else:
              test_case(
                  self, evaluation_module_name, evaluation_module_type
              )
  
      return wrapper
  
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 evaluate
  from evaluate import load
  from .utils import _run_slow_tests, for_all_test_methods, local, slow
label_desc: Use image node_id 3 for calling a global function with example usage: skip_slow_metrics(test_case) and returns: wrapper