code: def __init__(self, deconame):
      msg = (
          "Decorator '%s' can be applied only to FlowSpecs. Make sure "
          "the decorator is above a class definition." % deconame
      )
      super(BadFlowDecoratorException, 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 BadFlowDecoratorException object from inherited base classes: MetaflowException with example: obj = BadFlowDecoratorException(deconame)