code: def uniform(low, high, q):
      """Samples uniform value from [low, high] quantized to q."""
      # Samples f in [l, h+q) then quantizes f to [l, h] via floor()
      # This is equivalent to sampling f in (l-q, h] then quantizing via ceil()
      f = np.random.uniform(low, high + q)
      return quantize(f, q, np.floor)
  
file_path: pycls/pycls/sweep/random.py
imports: from decimal import Decimal
  import matplotlib.pyplot
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: uniform(low, high, q) and returns: quantize