code: def test_varying_len_args():
      def fn(*args):
          return sum(args)
  
      jit_fn = pyro.ops.jit.trace(fn)
      examples = [
          [torch.tensor(1.0)],
          [torch.tensor(2.0), torch.tensor(3.0)],
          [torch.tensor(4.0), torch.tensor(5.0), torch.tensor(6.0)],
      ]
      for args in examples:
          assert_equal(jit_fn(*args), fn(*args))
  
imports: import torch
  import pyro.ops.jit
  from tests.common import assert_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_varying_len_args() and returns: sum