@to_tuple
def _get_blocks_from_canonical_chain_by_slot(self, slot_of_requested_blocks: Sequence[Slot]) -> Iterable[BaseBeaconBlock]:
    for slot in slot_of_requested_blocks:
        try:
            block = self.chain.get_canonical_block_by_slot(slot)
        except BlockNotFound:
            pass
        else:
            (yield block)
@to_tuple
def _get_blocks_from_canonical_chain_by_slot(self, slot_of_requested_blocks: Sequence[Slot]) -> Iterable[BaseBeaconBlock]:
    for slot in slot_of_requested_blocks:
        try:
            block = self.chain.get_canonical_block_by_slot(slot)
        except BlockNotFound:
            pass
        else:
            (yield block)