code: def test_slice_start_and_ends_no_gap(self):
      regions_start = [i * 1000 for i in range(n_slices)]
      regions_ends = [start - 1 for start in regions_start[1:]] + [
          1e120
      ]
      slice_source_at_stamps(
          self.source_file,
          regions_start,
          regions_ends,
          output_dir=self.output_dir,
      )
      original_samples = count_samples_in_file(self.source_file)
      written_samples = count_samples_in_directory(self.output_dir)
      total_files = count_files_in_directory(self.output_dir)
      assert_equal(
          n_slices,
          total_files,
          "number of slices created different from expected",
      )
      assert_equal(
          written_samples,
          original_samples,
          "number of samples written different from number of original samples",
      )
  
imports: from numpy.testing import TestCase, assert_equal
  from aubio import slice_source_at_stamps
  from utils import count_files_in_directory, get_default_test_sound
  from utils import count_samples_in_directory, count_samples_in_file
  import tempfile
  import shutil
label_desc: Use image node_id 2 for calling the aubio_slicing_with_ends_test_case obj's underlying member method code with example usage: obj.test_slice_start_and_ends_no_gap() without return types