code: def load_statistics(
      stats_artifact: artifact.Artifact, split: str
  ) -> tfdv.DatasetListView:
      stats_dir = artifact_utils.get_split_uri([stats_artifact], split)
      if artifact_utils.is_artifact_version_older_than(
          stats_artifact,
          artifact_utils._ARTIFACT_VERSION_FOR_STATS_UPDATE,
      ):  # pylint: disable=protected-access
          stats = tfdv.load_statistics(
              os.path.join(stats_dir, TFRECORD_BASENAME)
          )
      else:
          stats = tfdv.load_stats_binary(
              os.path.join(stats_dir, BINARY_PB_BASENAME)
          )
      return tfdv.DatasetListView(stats)
  
imports: import os
  import tensorflow_data_validation
  from tfx.types import artifact
  from tfx.types import artifact_utils
label_desc: Use image node_id 1 for calling a global function with example usage: load_statistics(stats_artifact, split) and returns: tfdv