code: def _index_steps(self, test):
      steps = []
      for attr in dir(test):
          obj = getattr(test, attr)
          if hasattr(obj, "is_step"):
              steps.append(obj)
      return list(sorted(steps, key=lambda x: x.prio))
  
file_path: metaflow/test/core/metaflow_test/formatter.py
imports: import sys
  import inspect
label_desc: Use image node_id 3 for calling the FlowFormatter obj's underlying member method code with example usage: obj._index_steps(test) and returns: list