code: def get_random_kubasic_object(
      asset_source,
      objects_set="kubasic",
      color_strategy="uniform_hue",
      size_strategy="uniform",
      rng=randomness.default_rng(),
  ):
      if objects_set == "clevr":
          shape_name = rng.choice(CLEVR_OBJECTS)
      elif objects_set == "kubasic":
          shape_name = rng.choice(KUBASIC_OBJECTS)
      else:
          raise ValueError(f"Unknown object set {objects_set}")
  
      size_label, size = randomness.sample_sizes(size_strategy)
      color_label, random_color = randomness.sample_color(
          color_strategy
      )
      material_name = rng.choice(["Metal", "Rubber"])
      obj = asset_source.create(
          name=f"{size_label} {color_label} {material_name} {shape_name}",
          asset_id=shape_name,
          scale=size,
      )
  
      if material_name == "Metal":
          obj.material = kb.PrincipledBSDFMaterial(
              color=random_color, metallic=1.0, roughness=0.2, ior=2.5
          )
          obj.friction = 0.4
          obj.restitution = 0.3
          obj.mass *= 2.7 * size**3
      else:  # material_name == "Rubber"
          obj.material = kb.PrincipledBSDFMaterial(
              color=random_color,
              metallic=0.0,
              ior=1.25,
              roughness=0.7,
              specular=0.33,
          )
          obj.friction = 0.8
          obj.restitution = 0.7
          obj.mass *= 1.1 * size**3
  
      obj.metadata = {
          "shape": shape_name.lower(),
          "size": size,
          "size_label": size_label,
          "material": material_name.lower(),
          "color": random_color.rgb,
          "color_label": color_label,
      }
      return obj
  
file_path: kubric/kubric/assets/utils.py
imports: import numpy
  import kubric
  from kubric import core
  from kubric import randomness
  from kubric.core import color
label_desc: Use image node_id 3 for calling a global function with example usage: get_random_kubasic_object(asset_source, objects_set, color_strategy, size_strategy, rng) and returns: obj