code: def add_keypoints(db, image_id, keypoints):
      assert len(keypoints.shape) == 2
      assert keypoints.shape[1] in [2, 4, 6]
  
      keypoints = np.asarray(keypoints, np.float32)
      db.execute(
          "INSERT INTO keypoints VALUES (?, ?, ?, ?)",
          (image_id,) + keypoints.shape + (array_to_blob(keypoints),),
      )
  
file_path: nerfies/third_party/pycolmap/pycolmap/database.py
imports: import numpy
  import os
  import sqlite3
label_desc: Use image node_id 9 for calling a global function with example usage: add_keypoints(db, image_id, keypoints) without return types