code: def _array_checks(
      data_arr: xr.DataArray,
      dtype: npt.Dtype = np.float32,
      multiple_files: bool = False,
  ) -> None:
      assert data_arr.dims == ("y", "x")
      assert isinstance(data_arr.attrs["area"], SwathDefinition)
      assert data_arr.attrs["area"].shape == data_arr.shape
      assert isinstance(data_arr.data, da.Array)
      assert np.issubdtype(data_arr.data.dtype, dtype)
      is_mband_res = _is_mband_res(data_arr)
      shape_multiplier = 1 + int(multiple_files)
      exp_shape = (
          (M_ROWS * shape_multiplier, M_COLS)
          if is_mband_res
          else (I_ROWS * shape_multiplier, I_COLS)
      )
      assert data_arr.shape == exp_shape
      exp_row_chunks = 4 if is_mband_res else 8
      assert all(c == exp_row_chunks for c in data_arr.chunks[0])
      assert data_arr.chunks[1] == (exp_shape[1],)
  
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 22 for calling a global function with example usage: _array_checks(data_arr, dtype, multiple_files) without return types