code: def _check_shared_metadata(data_arr):
      assert data_arr.attrs["sensor"] == "modis"
      assert data_arr.attrs["platform_name"] == "EOS-Terra"
      assert "rows_per_scan" in data_arr.attrs
      assert isinstance(data_arr.attrs["rows_per_scan"], int)
      assert data_arr.attrs["reader"] == "modis_l1b"
      assert "resolution" in data_arr.attrs
      res = data_arr.attrs["resolution"]
      if res == 5000:
          assert data_arr.chunks == ((2, 2, 2), (data_arr.shape[1],))
      elif res == 1000:
          assert data_arr.chunks == ((10, 10, 10), (data_arr.shape[1],))
      elif res == 500:
          assert data_arr.chunks == ((20, 20, 20), (data_arr.shape[1],))
      elif res == 250:
          assert data_arr.chunks == ((40, 40, 40), (data_arr.shape[1],))
      else:
          raise ValueError(f"Unexpected resolution: {res}")
  
file_path: satpy/satpy/tests/reader_tests/modis_tests/test_modis_l1b.py
imports: from __future__ import annotations
  import dask
  import numpy
  import pytest
  from pytest_lazyfixture import lazy_fixture
  from satpy import Scene, available_readers
  from satpy.tests.utils import CustomScheduler, make_dataid
  from ._modis_fixtures import AVAILABLE_1KM_PRODUCT_NAMES, AVAILABLE_HKM_PRODUCT_NAMES, AVAILABLE_QKM_PRODUCT_NAMES, _shape_for_resolution
label_desc: Use image node_id 1 for calling a global function with example usage: _check_shared_metadata(data_arr) without return types