async def METHOD_NAME(tribler_config):  # pylint: disable=unused-argument
    session = Session(tribler_config, [ComponentA()])
    async with session:
        component_a = await session.get_instance(ComponentA).maybe_component(ComponentA)
        component_b = await session.get_instance(ComponentA).maybe_component(ComponentB)
        assert isinstance(component_a, ComponentA)
        assert isinstance(component_b, NoneComponent)
        assert isinstance(component_b.any_attribute, NoneComponent)
        assert isinstance(component_b.any_attribute.any_nested_attribute, NoneComponent)