code: def test_rvv(a, b):
      assert_equal(rvv(a, b), torch.dot(a, b), prec=1e-8)
      batched_a = lexpand(a, 5, 4)
      batched_b = lexpand(b, 5, 4)
      expected_ab = lexpand(torch.dot(a, b), 5, 4)
      assert_equal(rvv(batched_a, batched_b), expected_ab, prec=1e-8)
  
file_path: pyro/tests/contrib/test_util.py
imports: from collections import OrderedDict
  import pytest
  import torch
  from pyro.contrib.util import get_indices, lexpand, rdiag, rexpand, rmv, rtril, rvv, tensor_to_dict
  from tests.common import assert_equal
label_desc: Use image node_id 4 for calling a global function with example usage: test_rvv(a, b) without return types