code: def value_sampler(sampler):
      """Sampler for uniform sampling from a list of values."""
      rand_index = np.random.randint(len(sampler.VALUES))
      return sampler.VALUES[rand_index]
  
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 2 for calling a global function with example usage: value_sampler(sampler) and returns: sampler