code: def get_trg_ids(self, src_ids: np.ndarray) -> np.ndarray:
          unique_src_ids = np.lib.arraysetops.unique(src_ids)
          trg_ids = np.lib.arraysetops.union1d(self.always_allow, self.lex[unique_src_ids, :].reshape(-1))
          return trg_ids