code: def test_load_sharded_pattern(self):
      full_stats_proto = statistics_pb2.DatasetFeatureStatisticsList()
      text_format.Parse(_STATS_PROTO, full_stats_proto)
      tmp_dir = self.create_tempdir()
      tmp_path = os.path.join(tmp_dir, "statistics-0-of-1")
      writer = tf.compat.v1.io.TFRecordWriter(tmp_path)
      for dataset in full_stats_proto.datasets:
          shard = statistics_pb2.DatasetFeatureStatisticsList()
          shard.datasets.append(dataset)
          writer.write(shard.SerializeToString())
      writer.close()
      view = stats_util.load_sharded_statistics(
          input_path_prefix=tmp_path.rstrip("-0-of-1"),
          io_provider=artifacts_io_impl.get_io_provider("tfrecords"),
      )
      compare.assertProtoEqual(self, view.proto(), full_stats_proto)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import flags
  from absl.testing import absltest
  import numpy
  import tensorflow
  from tensorflow_data_validation import types
  from tensorflow_data_validation.utils import artifacts_io_impl
  from tensorflow_data_validation.utils import stats_util
  from google.protobuf import text_format
  from tensorflow.python.util.protobuf import compare
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 2 for calling the LoadShardedStatisticsTest obj's underlying member method code with example usage: obj.test_load_sharded_pattern() without return types