code: def test_scale_coversion(obj):
      obj.scale = 2.7
      assert_allclose(obj.scale, [2.7, 2.7, 2.7])
  
      obj.scale = (1.3,)
      assert_allclose(obj.scale, [1.3, 1.3, 1.3])
  
      with pytest.raises(tl.TraitError):
          obj.scale = (1.2, 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 6 for calling a global function with example usage: test_scale_coversion(obj) without return types