code: def testSerializeDeserializeEvalConfig(self):
      output_path = self._getTempDir()
      options = config_pb2.Options()
      options.compute_confidence_intervals.value = False
      options.min_slice_size.value = 1
      eval_config = config_pb2.EvalConfig(
          slicing_specs=[
              config_pb2.SlicingSpec(
                  feature_keys=["country"],
                  feature_values={"age": "5", "gender": "f"},
              ),
              config_pb2.SlicingSpec(
                  feature_keys=["interest"],
                  feature_values={"age": "6", "gender": "m"},
              ),
          ],
          options=options,
      )
      data_location = "/path/to/data"
      file_format = "tfrecords"
      model_location = "/path/to/model"
      with tf.io.gfile.GFile(
          os.path.join(output_path, "eval_config.json"), "w"
      ) as f:
          f.write(
              eval_config_writer._serialize_eval_run(
                  eval_config,
                  data_location,
                  file_format,
                  {"": model_location},
              )
          )
      (
          got_eval_config,
          got_data_location,
          got_file_format,
          got_model_locations,
      ) = eval_config_writer.load_eval_run(output_path)
      self.assertEqual(eval_config, got_eval_config)
      self.assertEqual(data_location, got_data_location)
      self.assertEqual(file_format, got_file_format)
      self.assertEqual({"": model_location}, got_model_locations)
  
file_path: model-analysis/tensorflow_model_analysis/writers/eval_config_writer_test.py
imports: import os
  import pickle
  from typing import Dict, List, NamedTuple, Optional, Union
  import tensorflow
  from tensorflow_model_analysis import version
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_model_analysis.slicer import slicer_lib
  from tensorflow_model_analysis.writers import eval_config_writer
label_desc: Use image node_id 2 for calling the EvalConfigWriterTest obj's underlying member method code with example usage: obj.testSerializeDeserializeEvalConfig() without return types