def key_by_args_and_func_kw(old_f, args, kw, cache_data):
    """Function to produce a key hash for the cache_data hash based on the function and the arguments
       provided."""
    return repr((old_f, args, kw))