code: def test_set_sequence(obj):
      obj.quaternion = (1, 2, 3, 4)
      assert_allclose(obj.quaternion, (1, 2, 3, 4))
  
      obj.quaternion = [1, 2, 3, 4]
      assert_allclose(obj.quaternion, (1, 2, 3, 4))
  
      obj.position = (3, 2, 1)
      assert_allclose(obj.position, (3, 2, 1))
  
      obj.position = np.array([0.1, 0.2, 0.3])
      assert_allclose(obj.position, (0.1, 0.2, 0.3))
  
      obj.scale = [2, 2, 2]
      assert_allclose(obj.scale, (2, 2, 2))
  
      obj.rgb = (0.5, 0.2, 0.1)
      assert obj.rgb == (0.5, 0.2, 0.1)
  
      obj.rgba = [1.0, 0.8, 0.6, 0.4]
      assert obj.rgba == (1.0, 0.8, 0.6, 0.4)
  
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 3 for calling a global function with example usage: test_set_sequence(obj) without return types