code: def sharded_filename(
      filename_tensor: tensor_lib.Tensor,
      shard: int,
      num_shards: tensor_lib.Tensor,
  ) -> tensor_lib.Tensor:
      """Append sharding information to a filename.
  
      Args:
        filename_tensor: A string tensor.
        shard: Integer.  The shard for the filename.
        num_shards: An int Tensor for the number of shards.
  
      Returns:
        A string tensor.
      """
      return gen_io_ops.sharded_filename(
          filename_tensor, shard, num_shards
      )
  
imports: import dataclasses
  from typing import Callable, Mapping, MutableMapping, MutableSequence, Sequence
  from tensorflow.core.protobuf import saver_pb2
  from tensorflow.python.checkpoint import checkpoint_options
  from tensorflow.python.checkpoint.sharding import sharding_policies
  from tensorflow.python.checkpoint.sharding import sharding_util
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import device
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_io_ops
  from tensorflow.python.ops import io_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.saved_model import registration
  from tensorflow.python.trackable import base
  from tensorflow.python.trackable import trackable_utils
  from tensorflow.python.training.saving import saveable_object
  from tensorflow.python.training.saving import saveable_object_util
  from tensorflow.python.types import core
  from tensorflow.python.util import nest
  from tensorflow.python.util import object_identity
label_desc: Use image node_id 3 for calling a global function with example usage: sharded_filename(filename_tensor, shard, num_shards) and returns: gen_io_ops