def first_not_none(*args: T | None, default: None | T = None) -> T | None:
    """
    Returns the first argument that is not None.
    """
    return next((arg for arg in args if arg is not None), default)
Returns the first argument that is not None.
src/bentoml/_internal/utils/__init__.py