code: def add_decorator_options(cmd):
      seen = {}
      for deco in flow_decorators():
          for option, kwargs in deco.options.items():
              if option in seen:
                  msg = (
                      "Flow decorator '%s' uses an option '%s' which is also "
                      "used by the decorator '%s'. This is a bug in Metaflow. "
                      "Please file a ticket on GitHub."
                      % (deco.name, option, seen[option])
                  )
                  raise MetaflowInternalError(msg)
              else:
                  seen[option] = deco.name
                  cmd.params.insert(
                      0, click.Option(("--" + option,), **kwargs)
                  )
      return cmd
  
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 1 for calling a global function with example usage: add_decorator_options(cmd) and returns: cmd