def METHOD_NAME(  # pylint: disable=no-self-argument
    cls, values: Dict[str, Any]
) -> Dict[str, Any]:
    """Validate that content or file is provided."""
    if all(i in values and values[i] for i in ["content", "file"]):
        raise ValueError("only one of content or file can be provided")
    if not any(i in values for i in ["content", "file"]):
        raise ValueError("one of content or file must be provided")
    return values