code: def sample_parameters(samplers):
      """Samples params [key, val, ...] list based on the samplers."""
      params = []
      for param, sampler in samplers.items():
          val = sampler_types[sampler.TYPE](sampler)
          is_composite = is_composite_sampler(sampler.TYPE)
          params.extend(val if is_composite else [param, val])
      return 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 7 for calling a global function with example usage: sample_parameters(samplers) and returns: params