code: def opencv_distortion(camera, x):
      x_sq = np.square(x)
      xy = np.prod(x, axis=-1, keepdims=True)
      r_sq = x_sq.sum(axis=-1, keepdims=True)
  
      return x * (
          1.0 + r_sq * (camera.k1 + camera.k2 * r_sq)
      ) + np.concatenate(
          (
              2.0 * camera.p1 * xy + camera.p2 * (r_sq + 2.0 * x_sq),
              camera.p1 * (r_sq + 2.0 * y_sq) + 2.0 * camera.p2 * xy,
          ),
          axis=-1,
      )
  
file_path: nerfies/third_party/pycolmap/pycolmap/camera.py
imports: import numpy
  from scipy.optimize import root
label_desc: Use image node_id 3 for calling a global function with example usage: opencv_distortion(camera, x) and returns: unknown