def METHOD_NAME(scheduler: Scheduler):
    scheduler.eva.incoming = {}
    scheduler.eva.outgoing = {}
    assert scheduler.can_be_send_immediately(MockTransfer(peer='peer', container=scheduler.eva.incoming))
    assert scheduler.can_be_send_immediately(MockTransfer(peer='peer', container=scheduler.eva.outgoing))
    scheduler.eva.incoming = {}
    scheduler.eva.outgoing = {'peer': Mock()}
    assert scheduler.can_be_send_immediately(MockTransfer(peer='peer', container=scheduler.eva.incoming))
    assert not scheduler.can_be_send_immediately(MockTransfer(peer='peer', container=scheduler.eva.outgoing))
    scheduler.eva.incoming = {'peer': Mock()}
    scheduler.eva.outgoing = {}
    assert not scheduler.can_be_send_immediately(MockTransfer(peer='peer', container=scheduler.eva.incoming))
    assert scheduler.can_be_send_immediately(MockTransfer(peer='peer', container=scheduler.eva.outgoing))
    scheduler.eva.settings.max_simultaneous_transfers = 2
    scheduler.eva.incoming = {'any peer': MockTransfer()}
    scheduler.eva.outgoing = {'any peer': MockTransfer()}
    assert not scheduler.can_be_send_immediately(MockTransfer(peer='peer', container=scheduler.eva.incoming))
    assert not scheduler.can_be_send_immediately(MockTransfer(peer='peer', container=scheduler.eva.outgoing))