def choose_tasks(self, stream_id, values):
if stream_id not in self.targets:<EOL><INDENT>return []<EOL><DEDENT>ret = []<EOL>for target in self.targets[stream_id]:<EOL><INDENT>ret.extend(target.choose_tasks(values))<EOL><DEDENT>return ret<EOL>
Choose tasks for a given stream_id and values and Returns a list of target tasks