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