    def _obj_idx_to_id(self, inference_state, obj_idx):
        """Map model-side object index to client-side object id."""
        return inference_state["obj_idx_to_id"][obj_idx]
Map model-side object index to client-side object id.
third_parts/sam2/sam2_video_predictor.py