code: def _attach_decorators(flow, decospecs):
      """
      Attach decorators to all steps during runtime. This has the same
      effect as if you defined the decorators statically in the source for
      every step. Used by --with command line parameter.
      """
      # Attach the decorator to all steps that don't have this decorator
      # already. This means that statically defined decorators are always
      # preferred over runtime decorators.
      #
      # Note that each step gets its own instance of the decorator class,
      # so decorator can maintain step-specific state.
      for step in flow:
          _attach_decorators_to_step(step, decospecs)
  
imports: from functools import partial
  import json
  import re
  import os
  import sys
  from .flowspec import FlowSpec
  from .exception import MetaflowInternalError, MetaflowException, InvalidDecoratorAttribute
  from metaflow._vendor import click
label_desc: Use image node_id 5 for calling a global function with example usage: _attach_decorators(flow, decospecs) without return types