class_docstr: Testcase for the kubric beam worker
class_docstr_tok: ["Testcase","for","the","kubric","beam","worker"]
code: def generate_scene(self, scene_config: kb.sunds.SceneConfig):
      scene = scene_config.as_scene()
      renderer = kb.renderer.blender.Blender(
          scene, scene_config.scratch_dir
      )
      scene += kb.Cube(
          name="floor", scale=(10, 10, 0.1), position=(0, 0, -0.1)
      )
      scene += kb.Sphere(name="ball", scale=1, position=(0, 0, 1.0))
      scene += kb.DirectionalLight(
          name="sun",
          position=(-1, -0.5, 3),
          look_at=(0, 0, 0),
          intensity=1.5,
      )
      scene += kb.PerspectiveCamera(
          name="camera", position=(3, -1, 4), look_at=(0, 0, 1)
      )
  
      render_layers = renderer.render_still()
      return {"rgb": render_layers["rgba"][:, :, :3]}
  
file_path: kubric/kubric/sunds/kubric_builder_test.py
imports: from __future__ import annotations
  import tempfile
  import kubric
  import kubric.renderer.blender
  import kubric.sunds
  import tensorflow_datasets
label_desc: Use image node_id 3 for calling the HelloBeamWorker obj's underlying member method code with example usage: obj.generate_scene(scene_config) and returns: dict