def METHOD_NAME(tribler_config: TriblerConfig):
    class SecondDerivedB(ComponentB):
        pass
    session = Session(tribler_config, [ComponentA(), DerivedB(), SecondDerivedB()])
    with pytest.raises(MultipleComponentsFound):
        session.get_instance(ComponentB)