code: def test_insat3d_has_calibrated_arrays(
      insat_filename,
      resolution,
      name,
      shape,
      expected_values,
      expected_name,
      expected_units,
  ):
      """Check that calibration happens as expected."""
      res = open_dataset(insat_filename, resolution=resolution)
      assert res[name].shape == shape
      np.testing.assert_allclose(res[name], expected_values)
      assert res[name].attrs["units"] == expected_units
      assert res[name].attrs["long_name"] == expected_name
  
imports: import os
  from datetime import datetime
  import dask.array
  import h5netcdf
  import numpy
  import pytest
  from satpy import Scene
  from satpy.readers.insat3d_img_l1b_h5 import CHANNELS_BY_RESOLUTION, LUT_SUFFIXES, Insat3DIMGL1BH5FileHandler, get_lonlat_suffix, open_dataset, open_datatree
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 6 for calling a global function with example usage: test_insat3d_has_calibrated_arrays(insat_filename, resolution, name, shape, expected_values, expected_name, expected_units) without return types