code: def _compare_nonarray(val1: Any, val2: Any) -> None:
      assert val1 == val2
      if isinstance(val1, (np.floating, np.integer, np.bool_)):
          assert isinstance(val2, np.generic)
          assert val1.dtype == val2.dtype
  
imports: from contextlib import contextmanager
  from datetime import datetime
  from typing import Any
  from unittest import mock
  import dask.array
  import numpy
  from pyresample import create_area_def
  from pyresample.geometry import BaseDefinition, SwathDefinition
  from xarray import DataArray
  from satpy import Scene
  from satpy.composites import GenericCompositor, IncompatibleAreas
  from satpy.dataset import DataID, DataQuery
  from satpy.dataset.dataid import default_id_keys_config, minimal_default_keys_config
  from satpy.modifiers import ModifierBase
  from satpy.readers.file_handlers import BaseFileHandler
label_desc: Use image node_id 15 for calling a global function with example usage: _compare_nonarray(val1, val2) without return types