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_id` and `other_examples_id`.
  
  Args:
    examples_id: A `int` indicating the id of one `TFXArtifactTypes.EXAMPLES`
      artifact.
    other_examples_id: A `int` indicating the id of another
      `TFXArtifactTypes.EXAMPLES` artifact.
    name: (Optional) A `str` indicating the label to use for stats of
      `examples_id`.
    other_name: (Optional) A `str` indicating the label to use for stats of
      `other_examples_id`.
docstr_tok: ["Compares","stats","for","`","examples_id","`","and","`","other_examples_id","`",".","Args",":","examples_id",":","A","`","int","`","indicating","the","id","of","one","`","TFXArtifactTypes.EXAMPLES","`","artifact",".","other_examples_id",":","A","`","int","`","indicating","the","id","of","another","`","TFXArtifactTypes.EXAMPLES","`","artifact",".","name",":","(","Optional",")","A","`","str","`","indicating","the","label","to","use","for","stats","of","`","examples_id","`",".","other_name",":","(","Optional",")","A","`","str","`","indicating","the","label","to","use","for","stats","of","`","other_examples_id","`","."]
code: def compare_stats_for_examples(
      self, examples_id, other_examples_id, name="", other_name=""
  ):
      """Compares stats for `examples_id` and `other_examples_id`.
  
      Args:
        examples_id: A `int` indicating the id of one `TFXArtifactTypes.EXAMPLES`
          artifact.
        other_examples_id: A `int` indicating the id of another
          `TFXArtifactTypes.EXAMPLES` artifact.
        name: (Optional) A `str` indicating the label to use for stats of
          `examples_id`.
        other_name: (Optional) A `str` indicating the label to use for stats of
          `other_examples_id`.
      """
      stats_artifact, other_stats_artifact = (
          self.get_dest_artifact_of_type(
              examples_id, TFXArtifactTypes.EXAMPLE_STATS
          ),
          self.get_dest_artifact_of_type(
              other_examples_id, TFXArtifactTypes.EXAMPLE_STATS
          ),
      )
      if stats_artifact and other_stats_artifact:
          tfdv.visualize_statistics(
              tfdv.load_statistics(stats_artifact.uri),
              rhs_statistics=tfdv.load_statistics(
                  other_stats_artifact.uri
              ),
              lhs_name=name,
              rhs_name=other_name,
          )
  
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 5 for calling the TFXReadonlyMetadataStore obj's underlying member method code with example usage: obj.compare_stats_for_examples(examples_id, other_examples_id, name, other_name) without return types