code: def _assert_cupy_array(*arrays):
      for a in arrays:
          if not isinstance(a, cupy._core.ndarray):
              raise linalg.LinAlgError(
                  "cupy.linalg only supports cupy.ndarray"
              )
  
file_path: cupy/cupy/linalg/_util.py
imports: import os
  import numpy
  from numpy import linalg
  import cupy
  import cupy._util
  from cupy import _core
  import cupyx
label_desc: Use image node_id 1 for calling a global function with example usage: _assert_cupy_array() without return types