code: def test_shift_time_events():
      """Test events latency shift by a given amount."""
      events = np.array([[0, 0, 0], [1, 1, 1], [2, 2, 2]])
      EXPECTED = [1, 2, 3]
      new_events = shift_time_events(
          events, ids=None, tshift=1, sfreq=1
      )
      assert all(new_events[:, 0] == EXPECTED)
  
      events = np.array([[0, 0, 0], [1, 1, 1], [2, 2, 2]])
      EXPECTED = [0, 2, 3]
      new_events = shift_time_events(
          events, ids=[1, 2], tshift=1, sfreq=1
      )
      assert all(new_events[:, 0] == EXPECTED)
  
imports: import os
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_equal
  from mne import Annotations, Epochs, compute_raw_covariance, count_events, create_info, find_events, find_stim_steps, make_fixed_length_events, pick_channels, pick_events, read_events, read_evokeds, write_events
  from mne.datasets import testing
  from mne.event import AcqParserFIF, define_target_events, match_event_names, merge_events, shift_time_events
  from mne.io import RawArray, read_raw_fif
label_desc: Use image node_id 12 for calling a global function with example usage: test_shift_time_events() without return types