code: def pack_triples_numpy(triples):
      
      if len(triples) == 0:
          return np.array([], dtype=np.int64)
      return np.stack(list(map(_transform_triple_numpy, triples)), axis=0)
docs: Packs a list of triple indexes into a 2D numpy array.