code: def test_can_score_2d():
      iem_2d.fit(Xd, yd)
      score = iem_2d.score(X2d, yd[:ntest, :])
      assert score.shape == (ntest,)
      score = iem_2d.score_against_reconstructed(
          X2d, np.random.rand(res[0] * res[1], ntest)
      )
      assert score.shape == (ntest,)
      score = iem_2d.score_against_reconstructed(
          X2d, np.random.rand(res[0] * res[1], ntest), metric="cosine"
      )
      assert score.shape == (ntest,)
  
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 26 for calling a global function with example usage: test_can_score_2d() without return types