code: def test_metric_deprecation_warning(
      func, args, mock_emitted_deprecation_warnings, mock_hfh, tmp_path
  ):
      if "tmp_path" in args:
          args = tuple(
              arg if arg != "tmp_path" else tmp_path for arg in args
          )
      with pytest.warns(
          FutureWarning, match="https://huggingface.co/docs/evaluate"
      ):
          func(*args)
  
imports: import pytest
  from datasets import inspect_metric, list_metrics, load_metric
label_desc: Use image node_id 3 for calling a global function with example usage: test_metric_deprecation_warning(func, args, mock_emitted_deprecation_warnings, mock_hfh, tmp_path) without return types