code: def _check_finite(a):
      if not ivy.all(ivy.isfinite(a)):
          raise ValueError("Array must not contain infs or NaNs")
  
file_path: ivy/ivy/functional/frontends/scipy/linalg/linalg.py
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 1 for calling a global function with example usage: _check_finite(a) without return types