code: def read_stats_protos(
      stats_artifact_uri: str,
  ) -> List[statistics_pb2.DatasetFeatureStatisticsList]:
      """Reads DatasetFeatureStatisticsList protos from provided uri.
  
      Args:
        stats_artifact_uri: the output artifact path of a StatsGen component.
  
      Returns:
        For each DatasetFeatureStatisticsList found in the directory, return in a
        list.
      """
      stats_protos = []
      for filename in tf.io.gfile.listdir(stats_artifact_uri):
          if tf.io.gfile.isdir(
              os.path.join(stats_artifact_uri, filename)
          ):
              stats_proto = read_stats_proto(
                  stats_artifact_uri, filename
              )
              if stats_proto:
                  logging.info(
                      "Reading stats artifact from %s", filename
                  )
                  stats_protos.append(stats_proto)
      return stats_protos
  
imports: import enum
  import os
  from typing import Any, Dict, Iterable, List, Optional, Sequence, Union
  import attr
  import ml_metadata
  import tensorflow
  import tensorflow_model_analysis
  from absl import logging
  from ml_metadata.proto import metadata_store_pb2
  from tensorflow_metadata.proto.v0 import statistics_pb2
  from model_card_toolkit import model_card
label_desc: Use image node_id 9 for calling a global function with example usage: read_stats_protos(stats_artifact_uri) and returns: stats_protos