code: def _build_id_to_index_dict(self):
      assert (self.captures is not None) and (
          len(self.captures) > 0
      ), "there is no captures"
      for i, cap in enumerate(self.captures):
          assert cap.view_id < self.num_views
          assert cap.cam_id < self.num_cams
          if cap.view_id not in self.view_id_to_index:
              self.view_id_to_index[cap.view_id] = [i]
          else:
              self.view_id_to_index[cap.view_id].append(i)
          if cap.cam_id not in self.cam_id_to_index:
              self.cam_id_to_index[cap.cam_id] = [i]
          else:
              self.cam_id_to_index[cap.cam_id].append(i)
  
file_path: ml-neuman/scenes/scene.py
imports: import os
  from tqdm import tqdm
label_desc: Use image node_id 7 for calling the RigCameraScene obj's underlying member method code with example usage: obj._build_id_to_index_dict() without return types