class_docstr: Trait for 3D vectors (such as position).
class_docstr_tok: ["Trait","for","3D","vectors","(","such","as","position",")","."]
code: def validate(self, obj, value):
      value = np.array(value, dtype=np.float32)
      if value.shape != (3,):
          self.error(obj, value)
      else:
          value.setflags(write=False)
          return value
  
imports: import numpy
  import traitlets
  import pyquaternion
  from kubric.core import color
  from kubric.core.assets import UndefinedAsset
  from kubric.core.assets import Asset
label_desc: Use image node_id 1 for calling the Vector3D obj's underlying member method code with example usage: obj.validate(obj, value) and returns: value