code: def sharded_filename(spec: str, i: int) -> str:
      """Gets a path appropriate for writing the ith file of a sharded spec."""
      return generate_sharded_filenames(spec)[i]
  
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 9 for calling a global function with example usage: sharded_filename(spec, i) and returns: generate_sharded_filenames