code: def generate_sharded_file_pattern(basename, num_shards, suffix):
      """Generate a sharded file pattern.
  
      Args:
        basename: str. The basename for the files.
        num_shards: int. The number of shards.
        suffix: str. The suffix if there is one or ''.
      Returns:
        pattern:
      """
      width = _shard_width(num_shards)
      specifier = "?" * width
      format_str = "{{0}}-{{1}}-of-{{2:0{0}}}{{3}}".format(width)
      return format_str.format(basename, specifier, num_shards, suffix)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import os
  import re
  from typing import List, Tuple
  from etils import epath
  import six
label_desc: Use image node_id 5 for calling a global function with example usage: generate_sharded_file_pattern(basename, num_shards, suffix) and returns: format_str