code: def to_step_result(func):
      
  
      @ft.wraps(func)
      def wrapper(*args, **kwargs):
          """Wrapper stub."""
          res = func(*args, **kwargs)
          if not res:
              res = [StepResult.OK]
  
          if not hasattr(res, "__iter__"):
              res = [res]
          return res
  
      return wrapper
docs: Convert a function return to a list of StepResults.
  
      All Step subclasses automatically wrap the result of their
      __call__ method's result with this wrapper.
      If the result is not a list of StepResult values, one will
      be generated.
  
      result of `[StepResult.OK]`, or convert the given result into
      a list.
  
      Args:
          func: The function to wrap.