code: def _format_method(self, step):
      def lines():
          lines, lineno = inspect.getsourcelines(step)
          lines_iter = iter(lines)
          is_next_line = False
          for line in lines_iter:
              head = line.lstrip()
              if is_next_line:
                  first_line = line
                  break
              if head.startswith("def "):
                  is_next_line = True
          indent = len(first_line) - len(first_line.lstrip())
          yield first_line[indent:].rstrip()
          for line in lines_iter:
              yield line[indent:].rstrip()
  
      code = self._code_cache.get(step)
      if code is None:
          code = self._code_cache[step] = list(lines())
      return code
  
file_path: metaflow/test/core/metaflow_test/formatter.py
imports: import sys
  import inspect
label_desc: Use image node_id 2 for calling the FlowFormatter obj's underlying member method code with example usage: obj._format_method(step) and returns: code