code: def add_hdri_dome(scene, background_hdri=None):
      """Adding HDRI dome."""
  
      # Download dome.blend
      dome_path = Path("/kubric/dome.blend")
      if not dome_path.exists():
          tf.io.gfile.copy(FLAGS.hdri_dir + "dome.blend", dome_path)
  
      dome = kb.FileBasedObject(
          name="BackgroundDome",
          position=(0, 0, 0),
          static=True,
          background=True,
          simulation_filename=None,
          render_filename=str(dome_path),
          render_import_kwargs={
              "filepath": str(Path(dome_path) / "Object" / "Dome"),
              "directory": str(Path(dome_path) / "Object"),
              "filename": "Dome",
          },
      )
      scene.add(dome)
      # pylint: disable=import-outside-toplevel
      from kubric.renderer import Blender
      import bpy
  
      blender_renderer = [
          v for v in scene.views if isinstance(v, Blender)
      ]
      if blender_renderer:
          dome_blender = dome.linked_objects[blender_renderer[0]]
          if bpy.app.version > (3, 0, 0):
              dome_blender.visible_shadow = False
          else:
              dome_blender.cycles_visibility.shadow = False
          if background_hdri is not None:
              dome_mat = dome_blender.data.materials[0]
              texture_node = dome_mat.node_tree.nodes["Image Texture"]
              texture_node.image = bpy.data.images.load(
                  background_hdri.filename
              )
      return dome
  
file_path: kubric/challenges/multiview_matting/worker.py
imports: import math
  from pathlib import Path
  import logging
  import numpy
  import tensorflow
  import kubric
  from kubric.renderer import Blender
  from kubric import file_io
label_desc: Use image node_id 1 for calling a global function with example usage: add_hdri_dome(scene, background_hdri) and returns: dome