code: def pose_rigid_body(
      rigid_body, pose: Dict[str, float], frame: float
  ) -> None:
      rigid_body.rotation_mode = "QUATERNION"
      for channel_name, channel_value in pose.items():
          if channel_name == "x":
              rigid_body.location.x = channel_value
          if channel_name == "y":
              rigid_body.location.y = channel_value
          if channel_name == "z":
              rigid_body.location.z = channel_value
          rigid_body.keyframe_insert(data_path="location", frame=frame)
  
          if channel_name == "qw":
              rigid_body.rotation_quaternion.w = channel_value
          if channel_name == "qx":
              rigid_body.rotation_quaternion.x = channel_value
          if channel_name == "qy":
              rigid_body.rotation_quaternion.y = channel_value
          if channel_name == "qz":
              rigid_body.rotation_quaternion.z = channel_value
          rigid_body.keyframe_insert(
              data_path="rotation_quaternion", frame=frame
          )
  
file_path: kubric/examples/animation.py
imports: import json
  import logging
  import kubric
  import shutil
  import tensorflow
  from typing import Dict, Sequence
  from kubric.renderer.blender import Blender
label_desc: Use image node_id 1 for calling a global function with example usage: pose_rigid_body(rigid_body, pose, frame) without return types