code: def test_create_should_succeed(self, model_name):
      model_path = test_utils.get_test_data_path(
          os.path.join(_TEST_DATA_DIR, model_name + ".tflite")
      )
      with open(model_path, "rb") as f:
          model_buffer = f.read()
      writer = (
          object_detector.MetadataWriter.create_for_models_with_nms(
              model_buffer,
              [_NORM_MEAN],
              [_NORM_STD],
              labels=metadata_writer.Labels().add_from_file(
                  _LABEL_FILE
              ),
          )
      )
      _, metadata_json = writer.populate()
      expected_json_path = test_utils.get_test_data_path(
          os.path.join(_TEST_DATA_DIR, model_name + ".json")
      )
      with open(expected_json_path, "r") as f:
          expected_json = f.read().strip()
      self.assertEqual(metadata_json, expected_json)
  
file_path: mediapipe/mediapipe/tasks/python/test/metadata/metadata_writers/object_detector_test.py
imports: import csv
  import os
  from absl.testing import absltest
  from absl.testing import parameterized
  from mediapipe.tasks.metadata import metadata_schema_py_generated
  from mediapipe.tasks.python.metadata import metadata
  from mediapipe.tasks.python.metadata.metadata_writers import metadata_info
  from mediapipe.tasks.python.metadata.metadata_writers import metadata_writer
  from mediapipe.tasks.python.metadata.metadata_writers import object_detector
  from mediapipe.tasks.python.test import test_utils
label_desc: Use image node_id 1 for calling the MetadataWriterTest obj's underlying member method code with example usage: obj.test_create_should_succeed(model_name) without return types