code: def initParticle(pcls, size, pmin, pmax, smin, smax):
      part = pcls(random.uniform(pmin, pmax) for _ in range(size))
      part.speed = [random.uniform(smin, smax) for _ in range(size)]
      part.smin = smin
      part.smax = smax
      return part
  
imports: import random
  from deap import base
  from deap import creator
  from deap import tools
label_desc: Use image node_id 1 for calling a global function with example usage: initParticle(pcls, size, pmin, pmax, smin, smax) and returns: part