code: def from_world_to_camera(cls, world_to_camera, unstable=False):
      assert isinstance(world_to_camera, np.ndarray)
      assert world_to_camera.shape == (4, 4)
      vec = transformations.translation_from_matrix(
          world_to_camera
      ).astype(np.float32)
      t = Translation(vec)
      if unstable:
          r = UnstableRotation(world_to_camera)
      else:
          quat = transformations.quaternion_from_matrix(
              world_to_camera
          ).astype(np.float32)
          r = Rotation(quat)
      return cls(t, r)
  
imports: import numpy
  from geometry import transformations
  from geometry.basics import Translation, Rotation, UnstableRotation
label_desc: Use image node_id 3 for calling the CameraPose obj's underlying member method code with example usage: obj.from_world_to_camera(cls, world_to_camera, unstable) and returns: cls