code: def test_2d_stimulus_resolution():
      s2 = InvertedEncoding2D(
          stim_xlim=[-1, 1], stim_ylim=[-1, 1], stimulus_resolution=10
      )
      assert len(s2.stim_pixels[0] == 10)
      assert len(s2.stim_pixels[1] == 10)
      s2 = InvertedEncoding2D(
          stim_xlim=[-1, 1],
          stim_ylim=[-2, 2],
          stimulus_resolution=[10, 20],
      )
      assert len(s2.stim_pixels[0] == 10)
      assert len(s2.stim_pixels[1] == 20)
  
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 5 for calling a global function with example usage: test_2d_stimulus_resolution() without return types