code: def load_scene_info(
      data_dir: types.PathType,
  ) -> Tuple[np.ndarray, float, float, float]:
      """Loads the scene scale from scene_scale.npy.
  
      Args:
        data_dir: the path to the dataset.
  
      Returns:
        scene_center: the center of the scene (unscaled coordinates).
        scene_scale: the scale of the scene.
        near: the near plane of the scene (scaled coordinates).
        far: the far plane of the scene (scaled coordinates).
  
      Raises:
        ValueError if scene_scale.npy does not exist.
      """
      scene_json_path = gpath.GPath(data_dir, "scene.json")
      with scene_json_path.open("r") as f:
          scene_json = json.load(f)
  
      scene_center = np.array(scene_json["center"])
      scene_scale = scene_json["scale"]
      near = scene_json["near"]
      far = scene_json["far"]
  
      return scene_center, scene_scale, near, far
  
imports: import json
  from typing import List, Tuple
  from absl import logging
  import cv2
  import numpy
  from nerfies import gpath
  from nerfies import types
  from nerfies import utils
  from nerfies.datasets import core
label_desc: Use image node_id 1 for calling a global function with example usage: load_scene_info(data_dir) and returns: scene_center,  scene_scale,  near,  far