code: def test_create_metadata_should_succeed(self):
      file_md = metadata_info.AssociatedFileMd(
          file_path="label.txt",
          description="The label file.",
          file_type=_metadata_fb.AssociatedFileType.TENSOR_AXIS_LABELS,
          locale="en",
      )
      file_metadata = file_md.create_metadata()
  
      # Create the Flatbuffers object and convert it to the json format.
      model_metadata = _metadata_fb.ModelMetadataT()
      model_metadata.associatedFiles = [file_metadata]
      builder = flatbuffers.Builder(0)
      builder.Finish(
          model_metadata.Pack(builder),
          _metadata.MetadataPopulator.METADATA_FILE_IDENTIFIER,
      )
      metadata_json = _metadata.convert_to_json(bytes(builder.Output()))
  
      with open(self._EXPECTED_META_JSON, "r") as f:
          expected_json = f.read()
      self.assertEqual(metadata_json, expected_json)
  
imports: import os
  import tempfile
  from absl.testing import absltest
  from absl.testing import parameterized
  import flatbuffers
  from mediapipe.tasks.metadata import metadata_schema_py_generated
  from mediapipe.tasks.metadata import schema_py_generated
  from mediapipe.tasks.python.metadata import metadata
  from mediapipe.tasks.python.metadata.metadata_writers import metadata_info
  from mediapipe.tasks.python.test import test_utils
label_desc: Use image node_id 1 for calling the AssociatedFileMdTest obj's underlying member method code with example usage: obj.test_create_metadata_should_succeed() without return types