code: def load_near_far_cache(opt, scene, geo_threshold):
      cache_book = {}
      h, w = scene.captures[0].shape
      for cap in scene.captures:
          save_path = os.path.abspath(
              os.path.join(
                  scene.captures[0].image_path,
                  f"../../cache/near_far_cache_{os.path.basename(cap.image_path)}_{h}_{w}_{geo_threshold}_{opt.normalize}.npy",
              )
          )
          assert os.path.isfile(save_path), f"{save_path} not exist"
          cur_cache = np.load(save_path)
          cache_book[os.path.basename(cap.image_path)] = cur_cache
          print(f"loaded near/far cache from: {save_path}")
      return cache_book
  
imports: import os
  import numpy
  import torch
  from utils import ray_utils
label_desc: Use image node_id 2 for calling a global function with example usage: load_near_far_cache(opt, scene, geo_threshold) and returns: cache_book