code: def _check_dims(a, name, ndim, min_size=1):
      if len(a.shape) != ndim:
          raise ValueError(
              f"{name} must be {ndim}-dimensional, " f"found {a.ndim}"
          )
      for i in range(ndim):
          if a.shape[i] < min_size:
              raise ValueError(
                  f"{name}.shape[{i}] must be at least "
                  f"{min_size}, found {a.shape[i]}"
              )
  
file_path: hail/hail/python/hail/linalg/utils/misc.py
imports: import numpy
  import hail
  from hail.typecheck import typecheck, oneof, nullable
  from hail.expr.expressions import expr_locus, expr_float64, raise_unless_row_indexed
  from hail.utils.java import Env
label_desc: Use image node_id 3 for calling a global function with example usage: _check_dims(a, name, ndim, min_size) without return types