docstr: Tests building metric with only required values.
docstr_tok: ["Tests","building","metric","with","only","required","values","."]
code: def test_build_metric(self):
      """Tests building metric with only required values."""
      bench = perfzero_benchmark.PerfZeroBenchmark()
      metric_name = "metric_name"
      value = 25.93
  
      expected_metric = {"name": metric_name, "value": value}
      metric = bench.build_metric(metric_name, value)
      self.assertEqual(metric, expected_metric)
  
file_path: agents/tf_agents/benchmark/perfzero_benchmark_test.py
imports: from tf_agents.benchmark import perfzero_benchmark
  from tf_agents.utils import test_utils
label_desc: Use image node_id 1 for calling the PerfzeroBenchmarkTest obj's underlying member method code with example usage: obj.test_build_metric() without return types