def METHOD_NAME(key, value):
    # type: (str, Any) -> bool
    # Skip this key if it is not set
    if value is None or value == "":
        return True
    # Skip `timelimit` if it is not set (its default/unset value is a
    # tuple or a list of `None` values
    if key == "timelimit" and all(_ is None for _ in value):
        return True
    # Skip `retries` if its value is `0`
    if key == "retries" and value == 0:
        return True
    return False