<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def select(self, ids, do_emit=True, **kwargs):
 """Select some rows in the table. By default, the `select` event is raised, unless `do_emit=False`. """

        # Select the rows without emiting the event.
        self.eval_js('table.select({}, false);'.format(dumps(ids)))
        if do_emit:
            # Emit the event manually if needed.
            self.emit('select', ids, **kwargs)