code: def test_clamp_max():
      array = [-1, 2, -3, 4, -5]
  
      s = Stream.source(array, dtype="float")
  
      w = s.clamp_max(0).rename("w")
      expected = list(
          pd.Series(array).apply(lambda x: x if x < 0 else 0)
      )
  
      assert_op([w], expected)
  
imports: import pandas
  from tensortrade.feed import Stream
  from tests.utils.ops import assert_op
label_desc: Use image node_id 2 for calling a global function with example usage: test_clamp_max() without return types