code: def _test_renormalization2(simi):
      I = make_xyz_image(make_data_int16(), dummy_affine, "scanner")
      I0 = make_xyz_image(
          np.zeros(I.shape, dtype="int16"), dummy_affine, "scanner"
      )
      R = HistogramRegistration(I0, I)
      R.subsample(spacing=[2, 1, 3])
      R._set_similarity(simi, renormalize=True)
      assert_almost_equal(R.eval(Affine()), 0)
  
imports: import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from ....core.image.image_spaces import make_xyz_image
  from ....testing import assert_almost_equal
  from .._registration import _joint_histogram
  from ..affine import Affine, Rigid
  from ..histogram_registration import HistogramRegistration
label_desc: Use image node_id 15 for calling a global function with example usage: _test_renormalization2(simi) without return types