class_docstr: Scale trait.
class_docstr_tok: ["Scale","trait","."]
code: def validate(self, obj, value):
      value = np.array(value, dtype=np.float32)
      if not value.shape:  # broadcast scalar Scale to 3D
          value = np.array([value, value, value], dtype=np.float32)
      elif value.shape == (1,):  # broadcast scalar Scale to 3D
          value = np.array(
              [value[0], value[0], value[0]], 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 Scale obj's underlying member method code with example usage: obj.validate(obj, value) and returns: value