def check_link(result, left, right):
    assert isinstance(result, core.component_link.ComponentLink)
    if isinstance(left, ComponentID):
        assert result.get_from_ids() in left
    if isinstance(right, ComponentID):
        assert right in result.get_from_ids()

# componentID overload
dataset/ETHPy150Open glue-viz/glue/glue/core/tests/test_component.py/check_link/swapped operands of `in`