code: def _read_stepfiles_list(
      path_prefix, path_suffix=".index", min_steps=0
  ):
      """Return list of StepFiles sorted by step from files at path_prefix."""
      stepfiles = []
      for filename in _try_twice_tf_glob(
          path_prefix + "*-[0-9]*" + path_suffix
      ):
          basename = (
              filename[: -len(path_suffix)] if path_suffix else filename
          )
          try:
              steps = int(basename.rsplit("-")[-1])
          except ValueError:  # The -[0-9]* part is not an integer.
              continue
          if steps < min_steps:
              continue
          if not os.path.exists(filename):
              tf.logging.info(filename + " was deleted, so skipping it")
              continue
          stepfiles.append(
              StepFile(
                  basename,
                  os.path.getmtime(filename),
                  os.path.getctime(filename),
                  steps,
              )
          )
      return sorted(stepfiles, key=lambda x: -x.steps)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import math
  import os
  import re
  import sys
  import time
  import unicodedata
  import numpy
  import six
  from six.moves import range
  from six.moves import zip
  from tensor2tensor.data_generators import text_encoder
  import tensorflow.compat.v1
label_desc: Use image node_id 7 for calling a global function with example usage: _read_stepfiles_list(path_prefix, path_suffix, min_steps) and returns: sorted