code: def test_raises_on_invalid_sequence_length(obj):
      with pytest.raises(tl.TraitError):
          obj.position = (1, 2, 3, 4)
  
      with pytest.raises(tl.TraitError):
          obj.quaternion = (1, 2, 3)
  
      with pytest.raises(tl.TraitError):
          obj.rgb = (1, 1, 1, 1)
  
      with pytest.raises(tl.TraitError):
          obj.rgba = (1, 1)
  
file_path: kubric/test/test_traits.py
imports: import numpy
  import pytest
  import traitlets
  from numpy.testing import assert_allclose
  from kubric.core import traits
label_desc: Use image node_id 5 for calling a global function with example usage: test_raises_on_invalid_sequence_length(obj) without return types