code: def test_data_dimensions():
      x = np.random.rand(5, 10, 2)
      s = InvertedEncoding1D()
      with pytest.raises(ValueError):
          s.fit(x, np.random.rand(5))
      s2 = InvertedEncoding2D(
          stim_xlim=[-1, 1], stim_ylim=[-1, 1], stimulus_resolution=10
      )
      with pytest.raises(ValueError):
          s2.fit(x, np.random.rand(5))
  
imports: import pytest
  import numpy
  import logging
  from brainiak.reconstruct.iem import InvertedEncoding1D, InvertedEncoding2D
  from brainiak.utils.fmrisim import generate_1d_gaussian_rfs, generate_1d_rf_responses
  from scipy.stats import circmean
label_desc: Use image node_id 4 for calling a global function with example usage: test_data_dimensions() without return types