def is_observation(data) -> bool:
    """ check if the event is a real observation based on the event role.

    Parameters
    ----------
    data: xml
        decoded voevent

    Returns
    ----------
    out: bool
        True if the event role is an observation.
        False otherwise (test/utility).
    """
    return data.attrib['role'] == 'observation'