code: def test_model_metadata(self, backend):
      keras_model = tf.keras.Sequential(
          [tf.keras.layers.ReLU(input_shape=(4, 5), batch_size=3)]
      )
      input_names, output_names = get_tf_keras_io_names(keras_model)
      mlmodel = converter.convert(
          keras_model,
          inputs=[TensorType(input_names[0], (3, 4, 5))],
          outputs=["Identity"],
          source=frontend,
          convert_to=backend[0],
      )
      metadata_keys = (
          mlmodel.get_spec().description.metadata.userDefined
      )
      assert "com.github.apple.coremltools.version" in metadata_keys
      assert "com.github.apple.coremltools.source" in metadata_keys
      assert (
          "tensorflow==2."
          in metadata_keys["com.github.apple.coremltools.source"]
      )
  
imports: import os
  import shutil
  import tempfile
  import pytest
  import coremltools.converters
  from coremltools.converters.mil.frontend.tensorflow.test.test_load import frontend
  from coremltools.converters.mil.frontend.tensorflow.test.testing_utils import get_tf_keras_io_names
  from coremltools.converters.mil.input_types import TensorType
  from coremltools.converters.mil.testing_reqs import backends
label_desc: Use image node_id 11 for calling the TestTf2ModelFormats obj's underlying member method code with example usage: obj.test_model_metadata(backend) without return types