code: def __str__(self):
      s = self.GetNameFromType(self.camera_type) + " {} {} {}".format(
          self.width, self.height, self.fx
      )
  
      if self.camera_type in (1, 4):  # PINHOLE, OPENCV
          s += " {}".format(self.fy)
  
      s += " {} {}".format(self.cx, self.cy)
  
      if self.camera_type == 2:  # SIMPLE_RADIAL
          s += " {}".format(self.k1)
  
      elif self.camera_type == 3:  # RADIAL
          s += " {} {}".format(self.k1, self.k2)
  
      elif self.camera_type == 4:  # OPENCV
          s += " {} {} {} {}".format(self.k1, self.k2, self.p1, self.p2)
  
      return s
  
file_path: nerfies/third_party/pycolmap/pycolmap/camera.py
imports: import numpy
  from scipy.optimize import root
label_desc: Use image node_id 4 for calling the Camera obj's underlying member method code with example usage: obj.__str__() and returns: s