code: def expanded_paths_if_sharded(path):
      """Returns all file paths for the given (optionally sharded) tfrecord path.
  
      Args:
          path: String. Path to the (optionally sharded) TFRecords.  Returns a lits
            with the original path if the tfrecord file is not sharded, or a list of
            paths to all shards if it is.
      """
      if sharded_file_utils.is_sharded_file_spec(path):
          paths = sharded_file_utils.generate_sharded_filenames(path)
      else:
          paths = [path]
      return paths
  
file_path: deepvariant/third_party/nucleus/io/tfrecord.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import heapq
  import contextlib2
  from third_party.nucleus.io import genomics_reader
  from third_party.nucleus.io import genomics_writer
  from third_party.nucleus.io import sharded_file_utils
  from tensorflow.core.example import example_pb2
label_desc: Use image node_id 4 for calling a global function with example usage: expanded_paths_if_sharded(path) and returns: paths