code: def test_get_inst_data():
      """Test _get_inst_data."""
      raw = read_raw_fif(fname_raw)
      raw.crop(tmax=1.0)
      assert_array_equal(_get_inst_data(raw), raw._data)
      raw.pick(raw.ch_names[:2])
  
      epochs = make_fixed_length_epochs(raw, 0.5)
      assert_array_equal(_get_inst_data(epochs), epochs._data)
  
      evoked = epochs.average()
      assert_array_equal(_get_inst_data(evoked), evoked.data)
  
      evoked.crop(tmax=0.1)
      picks = list(range(2))
      freqs = [50.0, 55.0]
      n_cycles = 3
      tfr = tfr_morlet(
          evoked, freqs, n_cycles, return_itc=False, picks=picks
      )
      assert_array_equal(_get_inst_data(tfr), tfr.data)
  
      pytest.raises(TypeError, _get_inst_data, "foo")
  
imports: from copy import deepcopy
  from datetime import datetime, timezone
  from io import StringIO
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from scipy import sparse
  from mne import pick_types, read_cov, read_evokeds
  from mne._fiff.pick import _picks_by_type
  from mne.epochs import make_fixed_length_epochs
  from mne.io import read_raw_fif
  from mne.time_frequency import tfr_morlet
  from mne.utils import _PCA, _apply_scaling_array, _apply_scaling_cov, _array_equal_nan, _cal_to_julian, _custom_lru_cache, _dt_to_julian, _freq_mask, _get_inst_data, _julian_to_cal, _julian_to_dt, _reg_pinv, _ReuseCycle, _time_mask, _undo_scaling_array, _undo_scaling_cov, compute_corr, create_slices, grand_average, hashfunc, numerics, object_diff, object_hash, object_size, random_permutation, sum_squared
  from mne.utils.numerics import _LRU_CACHE_MAXSIZES, _LRU_CACHES
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_inst_data() without return types