def checks(*args):
    def wrapper(func):
        if not hasattr(func, "_checks"):
            func._checks = []
        func._checks.extend(utils.check_ast_node(a) for a in args)

        logger.debug('checks() decorator executed')
        logger.debug('  func._checks: %s', func._checks)
        return func
    return wrapper
Decorator function to set checks to be run.
dataset/ETHPy150Open openstack/bandit/bandit/core/test_properties.py/checks