code: def test_blender_camera_assign_after_init(tmp_path):
      scene = core.Scene()
      renderer = blender.Blender(scene, tmp_path)
  
      cam = core.PerspectiveCamera(
          position=(1, 2, 3),
          quaternion=(0, 1, 0, 0),
          focal_length=3,
          sensor_width=4,
      )
  
      scene.camera = cam
  
      assert renderer in cam.linked_objects
      blender_cam = cam.linked_objects[renderer]
      assert renderer.blender_scene.camera == blender_cam
      assert (
          blender_cam
          in renderer.blender_scene.collection.objects.values()
      )
      assert tuple(blender_cam.location) == (1, 2, 3)
      assert tuple(blender_cam.rotation_quaternion) == (0, 1, 0, 0)
      assert blender_cam.data.lens == 3
      assert blender_cam.data.sensor_width == 4
  
file_path: kubric/test/test_blender.py
imports: from kubric.safeimport.bpy import bpy
  from kubric import core
  from kubric.renderer import blender
  from kubric.renderer import blender_utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_blender_camera_assign_after_init(tmp_path) without return types