code: def test_quniform():
      t = nni.quniform("x", 2.5, 5.5, 2.0)
      assert repr(t) == "Numerical(2.5, 5.5, q=2.0, label='x')"
      t = nni.quniform("x", 0.5, 3.5, 1).int()
      counter = Counter()
      for _ in range(900):
          counter[t.random()] += 1
      for key, value in counter.items():
          assert 250 <= value <= 350
          assert isinstance(key, int)
          assert key in [1, 2, 3]
  
file_path: nni/test/ut/sdk/mutable/test_shortcut.py
imports: from collections import Counter
  import nni
  from nni.mutable._notimplemented import randint, lognormal, qlognormal
label_desc: Use image node_id 4 for calling a global function with example usage: test_quniform() without return types