code: def _test_helper(res):
      """Remove test code duplication."""
      assert (2 * 40, 2048 * 2) == res["1"].shape
      assert "reflectance" == res["1"].attrs["calibration"]
      assert "%" == res["1"].attrs["units"]
      assert (2 * 40, 2048 * 2) == res["2"].shape
      assert "reflectance" == res["2"].attrs["calibration"]
      assert "%" == res["2"].attrs["units"]
      assert (2 * 40, 2048 * 2) == res["3"].shape
      assert "reflectance" == res["3"].attrs["calibration"]
      assert "%" == res["3"].attrs["units"]
      assert (2 * 40, 2048 * 2) == res["4"].shape
      assert "reflectance" == res["4"].attrs["calibration"]
      assert "%" == res["4"].attrs["units"]
  
imports: import os
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
label_desc: Use image node_id 7 for calling a global function with example usage: _test_helper(res) without return types