code: def testLoadsStatistics(self):
      source_data_dir = os.path.join(
          os.path.dirname(os.path.dirname(__file__)), "testdata"
      )
  
      stats_artifact = standard_artifacts.ExampleStatistics()
      stats_artifact.uri = os.path.join(
          source_data_dir, "statistics_gen"
      )
      stats_artifact.split_names = artifact_utils.encode_split_names(
          ["train", "eval", "test"]
      )
  
      self.assertGreater(
          stats_artifact_utils.load_statistics(stats_artifact, "train")
          .proto()
          .datasets[0]
          .num_examples,
          0,
      )
      with self.assertRaisesRegex(
          ValueError,
          "Split does not exist over all example artifacts: not_a_split",
      ):
          stats_artifact_utils.load_statistics(
              stats_artifact, "not_a_split"
          )
  
file_path: tfx/tfx/components/statistics_gen/stats_artifact_utils_test.py
imports: import os
  import tensorflow
  from tfx.components.statistics_gen import stats_artifact_utils
  from tfx.types import artifact_utils
  from tfx.types import standard_artifacts
label_desc: Use image node_id 1 for calling the StatsArtifactUtilsTest obj's underlying member method code with example usage: obj.testLoadsStatistics() without return types