def test_create_subset(self, sample_collection):
        """test converting batch into sample collection"""
        batch = foms.SampleSliceBatch(
            start_idx := mock.Mock(), stop_idx := mock.Mock()
        )

        #####
        result = batch.create_subset(sample_collection)
        #####

        sample_collection.__getitem__.assert_called_once_with(
            slice(start_idx, stop_idx)
        )

        assert result == sample_collection.__getitem__.return_value
test converting batch into sample collection
tests/unittests/map/test_slice_batch.py