code: def test_write_and_read(self):
      # TODO(b/123241798): use TEST_TMPDIR
      basedir = tempfile.mkdtemp()
      original = dataset_metadata.DatasetMetadata(
          schema=test_common.get_test_schema()
      )
  
      metadata_io.write_metadata(original, basedir)
      reloaded = metadata_io.read_metadata(basedir)
  
      self.assertEqual(original, reloaded)
  
file_path: transform/tensorflow_transform/tf_metadata/metadata_io_test.py
imports: import os
  import tempfile
  from tensorflow_transform.tf_metadata import test_common
  from tensorflow_transform.tf_metadata import dataset_metadata
  from tensorflow_transform.tf_metadata import metadata_io
  import unittest
  from tensorflow.python.lib.io import file_io
label_desc: Use image node_id 5 for calling the SchemaIOv1JsonTest obj's underlying member method code with example usage: obj.test_write_and_read() without return types