def takes_config(conf_gen_func=None):
    """Decorator to indicate that function takes a config dictionary

    Example:
        @takes_config(config_generator)
        def test_xyz(self):

    :returns: Function which contains the has "takes_config" attribute
    """
    def decorate(func):
        # Just having the attribute indicates that it takes config, no value
        # needed
        func.takes_config = None
        func.config_generator = conf_gen_func
        return func
    return decorate