code: def test_vectors_scale_and_quaternions_not_writable(obj):
      # see https://github.com/google-research/kubric/issues/142
      with pytest.raises(ValueError):
          obj.position[0] = 0
  
      with pytest.raises(ValueError):
          obj.scale[0] = 0
  
      with pytest.raises(ValueError):
          obj.quaternion[0] = 0
  
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 7 for calling a global function with example usage: test_vectors_scale_and_quaternions_not_writable(obj) without return types