code: def clamp(value, lo, hi) -> _DataNode:
      """Produces a tensor of values from ``value`` clamped to the range ``[lo, hi]``.
  
      :rtype: TensorList of the type that is calculated based on the type promotion rules.
      """
      return _arithm_op("clamp", value, lo, hi)
  
imports: import sys
  from nvidia.dali.data_node import DataNode
label_desc: Use image node_id 30 for calling a global function with example usage: clamp(value, lo, hi) and returns: _arithm_op