code: def list_sampler(sampler):
      """Sampler for a list of n items sampled independently by the item_sampler."""
      item_sampler, n = sampler.ITEM_SAMPLER, sampler.LENGTH
      sampler_function = sampler_types[item_sampler.TYPE]
      return [sampler_function(item_sampler) for _ in range(n)]
  
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 3 for calling a global function with example usage: list_sampler(sampler) and returns: unknown