code: def __init__(self, deco, func):
      msg = (
          "You tried to apply decorator '{deco}' on '{func}' which is "
          "not declared as a @step. Make sure you apply this decorator "
          "on a function which has @step on the line just before the "
          "function name and @{deco} is above @step.".format(
              deco=deco, func=func.__name__
          )
      )
      super(BadStepDecoratorException, self).__init__(msg)
  
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 to create a new BadStepDecoratorException object from inherited base classes: MetaflowException with example: obj = BadStepDecoratorException(deco, func)