code: def _import_plugin_decorators(globals_dict):
      """
      Auto-generate a decorator function for every decorator
      defined in plugins.STEP_DECORATORS and plugins.FLOW_DECORATORS.
      """
      from .plugins import STEP_DECORATORS, FLOW_DECORATORS
  
      # Q: Why not use StepDecorators directly as decorators?
      # A: Getting an object behave as a decorator that can work
      #    both with and without arguments is surprisingly hard.
      #    It is easier to make plain function decorators work in
      #    the dual mode - see _base_step_decorator above.
      for decotype in STEP_DECORATORS:
          globals_dict[decotype.name] = partial(
              _base_step_decorator, decotype
          )
  
      # add flow-level decorators
      for decotype in FLOW_DECORATORS:
          globals_dict[decotype.name] = partial(
              _base_flow_decorator, decotype
          )
  
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 10 for calling a global function with example usage: _import_plugin_decorators(globals_dict) without return types