code: def test_unary(op, data, provenance):
      data = ProvenanceTensor(data, frozenset(provenance))
  
      expected = frozenset(provenance)
      actual = getattr(data, op)()._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 1 for calling a global function with example usage: test_unary(op, data, provenance) without return types