code: def _shared_metadata_checks(data_arr: xr.DataArray) -> None:
      is_mband_res = _is_mband_res(data_arr)
      exp_rps = 16 if is_mband_res else 32
      assert data_arr.attrs["sensor"] == "viirs"
      assert data_arr.attrs["rows_per_scan"] == exp_rps
  
      lons = data_arr.attrs["area"].lons
      lats = data_arr.attrs["area"].lats
      assert lons.attrs["rows_per_scan"] == exp_rps
      assert lats.attrs["rows_per_scan"] == exp_rps
      assert lons.min() >= -180.0
      assert lons.max() <= 180.0
      assert lats.min() >= -90.0
      assert lats.max() <= 90.0
  
imports: from __future__ import annotations
  import shutil
  from datetime import datetime, timedelta
  from pathlib import Path
  from typing import Iterable
  import dask
  import dask.array
  import numpy
  import numpy.typing
  import pytest
  import xarray
  from pyresample import SwathDefinition
  from pytest import TempPathFactory
  from pytest_lazyfixture import lazy_fixture
label_desc: Use image node_id 23 for calling a global function with example usage: _shared_metadata_checks(data_arr) without return types