docstr: Tests building metric with added max_value.
docstr_tok: ["Tests","building","metric","with","added","max_value","."]
code: def test_build_metric_max_only(self):
      """Tests building metric with added max_value."""
      bench = perfzero_benchmark.PerfZeroBenchmark()
      metric_name = "metric_name"
      value = 25.93
      max_value = 89632.22
  
      expected_metric = {
          "name": metric_name,
          "value": value,
          "max_value": max_value,
      }
      metric = bench.build_metric(
          metric_name, value, max_value=max_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 3 for calling the PerfzeroBenchmarkTest obj's underlying member method code with example usage: obj.test_build_metric_max_only() without return types