code: def test_create_with_score_calibration_should_succeed(self):
      with open(_MODEL_COCO, "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),
          score_calibration=metadata_writer.ScoreCalibration.create_from_file(
              metadata_fb.ScoreTransformationType.INVERSE_LOGISTIC,
              _SCORE_CALIBRATION_FILE,
              _SCORE_CALIBRATION_DEFAULT_SCORE,
          ),
      )
      tflite_content, metadata_json = writer.populate()
      with open(_JSON_FOR_SCORE_CALIBRATION, "r") as f:
          expected_json = f.read().strip()
      self.assertEqual(metadata_json, expected_json)
  
      displayer = metadata.MetadataDisplayer.with_model_buffer(
          tflite_content
      )
      calibration_file_buffer = displayer.get_associated_file_buffer(
          _SCORE_CALIBRATION_FILENAME
      )
      with open(_SCORE_CALIBRATION_FILE, "rb") as f:
          expected_calibration_file_buffer = f.read()
      self.assertEqual(
          calibration_file_buffer, expected_calibration_file_buffer
      )
  
      label_file_buffer = displayer.get_associated_file_buffer(
          _LABEL_FILE_NAME
      )
      with open(_LABEL_FILE, "rb") as f:
          expected_labelfile_buffer = f.read()
      self.assertEqual(label_file_buffer, expected_labelfile_buffer)
  
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 2 for calling the MetadataWriterTest obj's underlying member method code with example usage: obj.test_create_with_score_calibration_should_succeed() without return types