code: def test_add():
      # (left, right) : (Stream, Stream)
      s1 = Stream.source([3, -4, 6, -7, 2, -6], dtype="float")
      s2 = Stream.source([-3, 4, -6, 7, -2, 6], dtype="float")
  
      w1 = s1.add(s2).rename("w1")
      w2 = (s1 + s2).rename("w2")
  
      assert_op([w1, w2], 6 * [0])
  
      # (left, right) : (Stream, float)
      s1 = Stream.source([1, 2, 3, 4, 5, 6], dtype="float")
      s2 = 1
  
      w1 = s1.add(s2).rename("w1")
      w2 = (s1 + s2).rename("w2")
  
      assert_op([w1, w2], [2, 3, 4, 5, 6, 7])
  
file_path: tensortrade/tests/tensortrade/unit/feed/api/float/test_operations.py
imports: import pandas
  from tensortrade.feed import Stream
  from tests.utils.ops import assert_op
label_desc: Use image node_id 1 for calling a global function with example usage: test_add() without return types