code: def _add_shard_to_filename(filename, decode_hp):
      if decode_hp.shards > 1:
          shard_id = decode_hp.shard_id + decode_hp.shards_start_offset
          if decode_hp.shard_google_format:
              filename = filename + "-{0:05d}-of-{1:05d}".format(
                  shard_id, decode_hp.shards
              )
          else:
              filename = filename + ("%.3d" % shard_id)
      return filename
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import operator
  import os
  import re
  import string
  import time
  import numpy
  import six
  from six.moves import input
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.utils import contrib
  from tensor2tensor.utils import hparam
  from tensor2tensor.utils import mlperf_log
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 6 for calling a global function with example usage: _add_shard_to_filename(filename, decode_hp) and returns: filename