class_docstr: Metric serialization.
code: def _python_properties_internal(self):
      metadata = dict(
          class_name=generic_utils.get_registered_name(type(self.obj)),
          name=self.obj.name,
          dtype=self.obj.dtype,
      )
      metadata.update(layer_serialization.get_serialized(self.obj))
      if (
          self.obj._build_input_shape is not None
      ):  # pylint: disable=protected-access
          metadata[
              "build_input_shape"
          ] = (
              self.obj._build_input_shape
          )  # pylint: disable=protected-access
      return metadata
  
file_path: tensorflow/tensorflow/python/keras/saving/saved_model/metric_serialization.py
imports: from tensorflow.python.keras.saving.saved_model import constants
  from tensorflow.python.keras.saving.saved_model import layer_serialization
  from tensorflow.python.keras.utils import generic_utils
  from tensorflow.python.trackable import data_structures
label_desc: Use image node_id 2 for calling the MetricSavedModelSaver obj's underlying member method code with example usage: obj._python_properties_internal() and returns: metadata