def remove_empty_param_keys(params):
    """Returns a copy of ``params`` dict where any key with a value of ``None``
    or ``""`` (empty string) are removed.
    """
    return {k: v for k, v in params.items() if v is not None and v != ""}