code: def test_crop_when_negative_orig_time(windows_like_datetime):
      """Test cropping with orig_time, tmin and tmax previous to 1970."""
      # Regression test for gh-6621
      orig_time_stamp = -908196945.011331  # 1941-03-22 11:04:14.988669
      annot = Annotations(
          description="foo",
          onset=np.arange(0, 0.999, 0.1),
          duration=[0],
          orig_time=orig_time_stamp,
      )
      stamp = _dt_to_stamp(annot.orig_time)
      assert_allclose(stamp[0] + stamp[1] * 1e-6, orig_time_stamp)
      t = stamp[0] + stamp[1] * 1e-6
      assert t == orig_time_stamp
      assert len(annot) == 10
  
      # do not raise
      annot.crop(verbose="debug")
      assert len(annot) == 10
  
      # Crop with negative tmin, tmax
      tmin, tmax = (orig_time_stamp + t for t in (0.25, 0.75))
      assert tmin < 0 and tmax < 0
      crop_annot = annot.crop(tmin=tmin, tmax=tmax)
      assert_allclose(crop_annot.onset, [0.3, 0.4, 0.5, 0.6, 0.7])
      orig_dt = _stamp_to_dt(stamp)
      assert crop_annot.orig_time == orig_dt
  
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 37 for calling a global function with example usage: test_crop_when_negative_orig_time(windows_like_datetime) without return types