code: def test_crop_more():
      """Test more cropping."""
      raw = mne.io.read_raw_fif(fif_fname).crop(0, 11).load_data()
      raw._data[:] = np.random.RandomState(0).randn(*raw._data.shape)
      onset = np.array([0.47058824, 2.49773765, 6.67873287, 9.15837097])
      duration = np.array(
          [0.89592767, 1.13574672, 1.09954739, 0.48868752]
      )
      annotations = mne.Annotations(onset, duration, "BAD")
      raw.set_annotations(annotations)
      assert len(raw.annotations) == 4
      delta = 1.0 / raw.info["sfreq"]
      offset = raw.first_samp * delta
      raw_concat = mne.concatenate_raws(
          [
              raw.copy().crop(0, 4 - delta),
              raw.copy().crop(4, 8 - delta),
              raw.copy().crop(8, None),
          ]
      )
      assert_allclose(raw_concat.times, raw.times)
      assert_allclose(raw_concat[:][0], raw[:][0])
      assert raw_concat.first_samp == raw.first_samp
      assert_and_remove_boundary_annot(raw_concat, 2)
      assert len(raw_concat.annotations) == 4
      assert_array_equal(
          raw_concat.annotations.description,
          raw.annotations.description,
      )
      assert_allclose(raw.annotations.duration, duration)
      assert_allclose(raw_concat.annotations.duration, duration)
      assert_allclose(raw.annotations.onset, onset + offset)
      assert_allclose(
          raw_concat.annotations.onset,
          onset + offset,
          atol=1.0 / raw.info["sfreq"],
      )
  
imports: import sys
  from collections import OrderedDict
  from datetime import datetime, timedelta, timezone
  from itertools import repeat
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_equal
  from pytest import approx
  import mne
  from mne import Annotations, Epochs, annotations_from_events, count_annotations, create_info, events_from_annotations, read_annotations
  from mne.annotations import _handle_meas_date, _read_annotations_txt_parse_header, _sync_onset
  from mne.datasets import testing
  from mne.io import RawArray, concatenate_raws, read_raw_fif
  from mne.utils import _dt_to_stamp, _raw_annot, _record_warnings, _stamp_to_dt, assert_and_remove_boundary_annot, catch_logging, check_version
label_desc: Use image node_id 8 for calling a global function with example usage: test_crop_more() without return types