def is_sibling(element, mapping):
    """
    Returns whether given element type is present in given mapping types.

    Parameters
    ----------
    element : object
        Element to check if its type is present in the mapping types.
    mapping : dict
        Mapping.

    Returns
    -------
    bool
        Whether given element type is present in given mapping types.
    """

    return isinstance(
        element, tuple(set(type(element) for element in mapping.values())))