def check_bidi_comp(cond0, cond1, arg0, arg1):
    """
    Check whether conditions are True for two arguments regardless of order.

    Parameters
    ----------
    cond0, cond1 : callable
        Function of one variable that evaluate to a bool.
    arg0, arg1 : object
        Arguments to pass to `cond0` and `cond1`.

    Returns
    -------
    result : bool
        True if `cond0` and `cond1` are respectively True for
        `arg0` and `arg1` or `arg1` and `arg0`.
    """
    
    assert callable(cond0) and callable(cond1)
    return (cond0(arg0) and cond1(arg1)) or \
        (cond1(arg0) and cond0(arg1))