code: def _check_ndim(in_type, lower=1, upper=2):
      type_check.expect(in_type.ndim >= lower, in_type.ndim <= upper)
  
imports: import warnings
  import numpy
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function_node
  import chainer.functions
  from chainer import utils
  from chainer.utils import type_check
  import chainerx
label_desc: Use image node_id 5 for calling a global function with example usage: _check_ndim(in_type, lower, upper) without return types