code: def test_binary_add(data1, provenance1, data2, provenance2):
      data1 = ProvenanceTensor(data1, frozenset(provenance1))
      if provenance2:
          data2 = ProvenanceTensor(data2, frozenset(provenance2))
  
      expected = frozenset(provenance1 + provenance2)
      actual = torch.add(data1, data2)._provenance
      assert actual == expected
  
file_path: funsor/test/torch/test_provenance.py
imports: import pytest
  import torch
  from pyro.ops.indexing import Vindex
  from funsor.torch.provenance import ProvenanceTensor
label_desc: Use image node_id 2 for calling a global function with example usage: test_binary_add(data1, provenance1, data2, provenance2) without return types