def coalesce()

in google_cloud_automlops/utils/utils.py [0:0]


def coalesce(*arg):
    """Creates the first non-None value from a sequence of arguments.

    Returns:
        The first non-None argument, or None if all arguments are None.
    """
    for el in arg:
        if el is not None:
            return el
    return None