code: def add_matches(db, image_id1, image_id2, matches):
      assert len(matches.shape) == 2
      assert matches.shape[1] == 2
  
      if image_id1 > image_id2:
          matches = matches[:, ::-1]
  
      pair_id = get_pair_id(image_id1, image_id2)
      matches = np.asarray(matches, np.uint32)
      db.execute(
          "INSERT INTO matches VALUES (?, ?, ?, ?)",
          (pair_id,) + matches.shape + (array_to_blob(matches),),
      )
  
file_path: nerfies/third_party/pycolmap/pycolmap/database.py
imports: import numpy
  import os
  import sqlite3
label_desc: Use image node_id 10 for calling a global function with example usage: add_matches(db, image_id1, image_id2, matches) without return types