code: def test_decim_shift_time():
      """Test TFR decimation and shift_time."""
      data = np.zeros((3, 3, 3, 1000))
      times = np.linspace(0, 1, 1000)
      freqs = np.array([0.10, 0.20, 0.30])
      info = mne.create_info(
          ["MEG 001", "MEG 002", "MEG 003"],
          1000.0,
          ["mag", "mag", "mag"],
      )
      with info._unlock():
          info["lowpass"] = 100
      tfr = EpochsTFR(info, data=data, times=times, freqs=freqs)
      tfr_ave = tfr.average()
      assert_allclose(tfr.times, tfr_ave.times)
      assert not hasattr(tfr_ave, "first")
      tfr_ave.decimate(3)
      assert not hasattr(tfr_ave, "first")
      tfr.decimate(3)
      assert tfr.times.size == 1000 // 3 + 1
      assert tfr.data.shape == ((3, 3, 3, 1000 // 3 + 1))
      tfr_ave_2 = tfr.average()
      assert not hasattr(tfr_ave_2, "first")
      assert_allclose(tfr.times, tfr_ave.times)
      assert_allclose(tfr.times, tfr_ave_2.times)
      assert_allclose(tfr_ave_2.data, tfr_ave.data)
      tfr.shift_time(-0.1, relative=True)
      tfr_ave.shift_time(-0.1, relative=True)
      tfr_ave_3 = tfr.average()
      assert_allclose(tfr_ave_3.times, tfr_ave.times)
      assert_allclose(tfr_ave_3.data, tfr_ave.data)
      assert_allclose(tfr_ave_2.data, tfr_ave_3.data)
  
imports: import datetime
  import re
  from itertools import product
  from pathlib import Path
  import matplotlib.pyplot
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal, assert_equal
  from scipy.signal import morlet2
  import mne
  from mne import Epochs, EpochsArray, Info, Transform, create_info, pick_types, read_events
  from mne.io import read_raw_fif
  from mne.tests.test_epochs import assert_metadata_equal
  from mne.time_frequency import tfr_array_morlet, tfr_array_multitaper
  from mne.time_frequency.tfr import AverageTFR, EpochsTFR, _compute_tfr, _make_dpss, combine_tfr, cwt, fwhm, morlet, read_tfrs, tfr_morlet, tfr_multitaper, write_tfrs
  from mne.utils import catch_logging, grand_average
  from mne.viz.utils import _fake_click, _fake_keypress, _fake_scroll
label_desc: Use image node_id 7 for calling a global function with example usage: test_decim_shift_time() without return types