code: def clamp_max(s: "Stream[float]", c_max: float) -> "Stream[float]":
      """Clamps the maximum value of a stream.
  
      Parameters
      ----------
      s : `Stream[float]`
          A float stream.
      c_max : float
          The maximum value to clamp by.
  
      Returns
      -------
      `Stream[float]`
          The maximum clamped stream of `s`.
      """
      return BinOp(np.minimum)(s, Stream.constant(c_max)).astype(
          "float"
      )
  
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 2 for calling a global function with example usage: clamp_max(s, c_max) and returns: BinOp