code: def test_add():
      X = Uniform(0, 1).rv  # (0, 1)
      X = X + 1  # (1, 2)
      X = 1 + X  # (2, 3)
      X += 1  # (3, 4)
      x = X.dist.sample([N_SAMPLES])
      assert ((3 <= x) & (x <= 4)).all().item()
  
file_path: pyro/tests/contrib/randomvariable/test_random_variable.py
imports: import math
  import torch
  from pyro.distributions import Uniform
label_desc: Use image node_id 1 for calling a global function with example usage: test_add() without return types