code: def _clamp(self, val, lo, hi):  # type: ignore
      if val < lo:
          return lo
      if val > hi:
          return hi
      return val
  
imports: import numbers
  from typing import List
  import numpy
  from onnx.reference.op_run import OpRun
  from onnx.reference.ops.op_resize import _get_all_coords
label_desc: Use image node_id 11 for calling the GridSample obj's underlying member method code with example usage: obj._clamp(val, lo, hi) and returns: val, lo, hi