class_docstr: Main class from which all Flows should inherit.
  
  Attributes
  ----------
  index
  input
docstr: The value of the foreach artifact in this foreach branch.
  
  In a foreach step, multiple instances of this step (tasks) will be executed,
  one for each element in the foreach. This property returns the element passed
  to the current task. If this is not a foreach step, this returns None.
  
  If you need to know the values of the parent tasks in a nested foreach, use
  `FlowSpec.foreach_stack`.
  
  Returns
  -------
  object, optional
      Input passed to the foreach task.
code: def input(self) -> Optional[Any]:
      """
      The value of the foreach artifact in this foreach branch.
  
      In a foreach step, multiple instances of this step (tasks) will be executed,
      one for each element in the foreach. This property returns the element passed
      to the current task. If this is not a foreach step, this returns None.
  
      If you need to know the values of the parent tasks in a nested foreach, use
      `FlowSpec.foreach_stack`.
  
      Returns
      -------
      object, optional
          Input passed to the foreach task.
      """
      return self._find_input()
  
imports: import inspect
  import os
  import sys
  import traceback
  from itertools import islice
  from types import FunctionType, MethodType
  from typing import Any, Callable, List, Optional, Tuple
  from .None import cmd_with_io
  from .parameters import DelayedEvaluationParameter, Parameter
  from .exception import MetaflowException, MissingInMergeArtifactsException, UnhandledInMergeArtifactsException
  from .graph import FlowGraph
  from .unbounded_foreach import UnboundedForeachInput
  from .datastore.inputs import Inputs
label_desc: Use image node_id 10 for calling the FlowSpec obj's underlying member method code with example usage: obj.input() and returns: self