def METHOD_NAME(self):
    info = choice([self.api.getQueue(), self.api.getCollector()])
    if not info:
        return
    pids = [p.pid for p in info]
    if len(pids):
        pids = sample(pids, randint(1, max(floor(len(pids) / 2.5), 1)))
        self.api.METHOD_NAME(pids)