f METHOD_NAME(self, new_ids_tf: np.array,
                                     new_ids_np: np.array,
                                     new_id_lens_tf: np.array,
                                     new_id_lens_np: np.array,
                                     ids: np.array, id_lens: np.array,
                                     need_trailing_eos: bool):