class_docstr: A TFX ml-metadata store that provides read-only methods for notebooks.
class_docstr_tok: ["A","TFX","ml-metadata","store","that","provides","read-only","methods","for","notebooks","."]
docstr: Compares stats for examples to train `model_id` & `other_model_id`.
docstr_tok: ["Compares","stats","for","examples","to","train","`","model_id","`","&","`","other_model_id","`","."]
code: def compare_examples_stats_for_models(self, model_id, other_model_id):
      """Compares stats for examples to train `model_id` & `other_model_id`."""
      examples_artifact, other_examples_artifact = (
          self.get_source_artifact_of_type(
              model_id, TFXArtifactTypes.EXAMPLES
          ),
          self.get_source_artifact_of_type(
              other_model_id, TFXArtifactTypes.EXAMPLES
          ),
      )
      if examples_artifact and other_examples_artifact:
          self.compare_stats_for_examples(
              examples_artifact.id,
              other_examples_artifact.id,
              name="model_" + str(model_id),
              other_name="model_" + str(other_model_id),
          )
  
imports: import os
  import time
  import papermill
  import tensorflow_data_validation
  import tensorflow_model_analysis
  import utils
  from ml_metadata.metadata_store import metadata_store
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 7 for calling the TFXReadonlyMetadataStore obj's underlying member method code with example usage: obj.compare_examples_stats_for_models(model_id, other_model_id) without return types