'Create function calls to the decorators and reassignments to
the function.'

def _handle_fused_def_decorators(self, old_decorators, env, node):

    decorators = []
    for decorator in old_decorators:
        func = decorator.decorator
        if ((not func.is_name) or (func.name not in ('staticmethod', 'classmethod')) or env.lookup_here(func.name)):
            decorators.append(decorator)
    if decorators:
        transform = DecoratorTransform(self.context)
        def_node = node.node
        (_, reassignments) = transform.chain_decorators(def_node, decorators, def_node.name)
        reassignments.analyse_declarations(env)
        node = [node, reassignments]
    return node
