code: def test_rtril():
      A = torch.tensor([[1.0, 2.0], [-2.0, 0]])
      assert_equal(rtril(A), torch.tril(A), prec=1e-8)
      expanded = lexpand(A, 5, 4)
      expected = lexpand(torch.tril(A), 5, 4)
      assert_equal(rtril(expanded), expected, 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 7 for calling a global function with example usage: test_rtril() without return types