def get_configurators(self, location, function_name):

        config_modules = map(lambda x: getattr(location, x),
                             filter(lambda x: x[0] != '_',
                                    dir(location)))
        configurators = map(lambda x: getattr(x, function_name),
                            filter(lambda y: hasattr(y, function_name),
                                   config_modules))

        return configurators
Count the number of one time keys the server has for a device
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/config/config.py/Configuration.get_configurators--crossover with--dataset/ETHPy150Open matrix-org/synapse/synapse/storage/end_to_end_keys.py/EndToEndKeyStore.count_e2e_one_time_keys