code: def regnet_sampler(sampler):
      """Sampler for main RegNet parameters."""
      d = rand.uniform(*sampler.DEPTH, 1)
      w0 = rand.log_uniform(*sampler.W0, 8)
      wa = rand.log_uniform(*sampler.WA, 0.1)
      wm = rand.log_uniform(*sampler.WM, 0.001)
      gw = rand.power2_or_log_uniform(*sampler.GROUP_W, 8)
      bm = rand.power2_uniform(*sampler.BOT_MUL, 1 / 128)
      params = [
          "DEPTH",
          d,
          "W0",
          w0,
          "WA",
          wa,
          "WM",
          wm,
          "GROUP_W",
          gw,
          "BOT_MUL",
          bm,
      ]
      return [
          "REGNET." + p if i % 2 == 0 else p
          for i, p in enumerate(params)
      ]
  
file_path: pycls/pycls/sweep/samplers.py
imports: import numpy
  import pycls.core.builders
  import pycls.core.net
  import pycls.models.regnet
  import pycls.sweep.random
  from pycls.core.config import cfg
  from pycls.sweep.random import validate_rand
label_desc: Use image node_id 4 for calling a global function with example usage: regnet_sampler(sampler) and returns: unknown