code: def test_CheckpointOption_MaxShardSizePolicy(self):
      root = module.Module()
      with ops.device("cpu:0"):
          v0 = resource_variable_ops.ResourceVariable(
              [[0, 1], [2, 3], [4, 5]], name="v0"
          )
          v1 = resource_variable_ops.ResourceVariable(
              [[[6.0], [7.0]], [[8.0], [9.0]], [[10.0], [11.0]]],
              name="v1",
          )
          v2 = resource_variable_ops.ResourceVariable(
              "test_string", name="v1"
          )
      self.evaluate(v0.initializer)
      self.evaluate(v1.initializer)
      self.evaluate(v2.initializer)
      root.v0 = v0
      root.v1 = v1
      root.v2 = v2
  
      tmp_dir = self.create_tempdir("ckpt")
      ckpt = checkpoint.Checkpoint(root)
      save_path = ckpt.save(
          tmp_dir,
          options=checkpoint_options.CheckpointOptions(
              experimental_sharding_callback=(
                  sharding_policies.MaxShardSizePolicy(
                      max_shard_size=10
                  )
              )
          ),
      )
      self.assertLen(gfile.Glob(save_path + ".data*"), 8)
      ckpt.restore(save_path)
  
imports: import random
  import string
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.checkpoint import checkpoint_options
  from tensorflow.python.checkpoint import graph_view
  from tensorflow.python.checkpoint.sharding import sharding_policies
  from tensorflow.python.checkpoint.sharding import sharding_util
  from tensorflow.python.eager import remote
  from tensorflow.python.eager import test
  from tensorflow.python.framework import device
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.module import module
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import gfile
  from tensorflow.python.training import server_lib
  from tensorflow.python.training.saving import saveable_object
  from tensorflow.python.training.saving import saveable_object_util
label_desc: Use image node_id 8 for calling the ShardingPoliciesTest obj's underlying member method code with example usage: obj.test_CheckpointOption_MaxShardSizePolicy() without return types