def parse_arg_filters(filters, **kwargs):
    """Parses and returns a dictionary from `filters` and **kwargs."""
    query_filters = {}
    # **kwargs will override filters if matching key exists.
    if isinstance(filters, dict):
        query_filters.update(filters)
    return {**query_filters, **kwargs}