code: def clamp(
      s: "Stream[float]", c_min: float, c_max: float
  ) -> "Stream[float]":
      """Clamps the minimum and maximum value of a stream.
  
      Parameters
      ----------
      s : `Stream[float]`
          A float stream.
      c_min : float
          The mimimum value to clamp by.
      c_max : float
          The maximum value to clamp by.
  
      Returns
      -------
      `Stream[float]`
          The clamped stream of `s`.
      """
      stream = s.clamp_min(c_min).astype("float")
      stream = stream.clamp_max(c_max).astype("float")
      return stream
  
file_path: tensortrade/tensortrade/feed/api/float/ordering.py
imports: import numpy
  from tensortrade.feed.core.base import Stream
  from tensortrade.feed.core.operators import BinOp
  from tensortrade.feed.api.float import Float
label_desc: Use image node_id 3 for calling a global function with example usage: clamp(s, c_min, c_max) and returns: stream