code: def make_metric(**kwargs: Any) -> Metric:
      """
      Create a new :class:`Metric` and register it.
  
      :param kwargs: Passed on to ``Metric.__init__``.
      """
      result = Metric(**kwargs)
      METRICS.add(result)
      return result
  
file_path: GPflow/benchmark/metric_api.py
imports: from dataclasses import dataclass
  from enum import Enum
  from typing import Any, Optional
  from benchmark.registry import Named, Registry
label_desc: Use image node_id 1 for calling a global function with example usage: make_metric() and returns: result