def _load_builtins(self, filtering, profile):

        class Wrapper:
            def __init__(self, name, plugin):
                self.name = name
                self.plugin = plugin

        results = []

        if 'B001' in filtering:
            extman = extension_loader.MANAGER
            blacklist = profile.get('blacklist')
            if not blacklist:  # not overriden by legacy data
                blacklist = {}
                for node, tests in six.iteritems(extman.blacklist):
                    values = [t for t in tests if t['id'] in filtering]
                    if values:
                        blacklist[node] = values

            # this dresses up the blacklist to look like a plugin, but
            # the '_checks' data comes from the blacklist information.
            # the '_config' is the filtered blacklist data set.
            setattr(blacklisting.blacklist, "_test_id", 'B001')
            setattr(blacklisting.blacklist, "_checks", blacklist.keys())
            setattr(blacklisting.blacklist, "_config", blacklist)
            results.append(Wrapper('blacklist', blacklisting.blacklist))

        return results
Check if command is enabled.
dataset/ETHPy150Open openstack/bandit/bandit/core/test_set.py/BanditTestSet._load_builtins--crossover with--dataset/ETHPy150Open facelessuser/EasyDiff/easy_diff_basic.py/_EasyDiffCompareBothTextCommand.is_enabled