code: def test_keyframe_insert_raises_for_unknown_trait():
      obj = objects.Object3D()
      with pytest.raises(KeyError):
          obj.keyframe_insert("doesnotexist", 7)
  
imports: import re
  import pytest
  import numpy
  from numpy.testing import assert_allclose
  import pyquaternion
  from traitlets import TraitError
  from unittest import mock
  from kubric.core import Asset
  from kubric.core import UndefinedAsset
  from kubric.core import objects
  from kubric.core import materials
label_desc: Use image node_id 28 for calling a global function with example usage: test_keyframe_insert_raises_for_unknown_trait() without return types