def METHOD_NAME(key, value):
    if '.' in key and key.split(".")[0] == api_field:
        prefix, qualifier = key.split(".", maxsplit=1)
        try:
            return date_filter(qualifier, value)
        except ValueError as e:
            raise InvalidFilterError(str(e))
    return {}