code: def _update_path(p, path, new_path):
      return new_path + p[len(path) :]
  
imports: import logging
  from bson import DBRef, ObjectId
  import eta.core.utils
  from fiftyone.core.fields import BooleanField, ClassesField, ColorField, DateTimeField, DictField, EmbeddedDocumentField, EmbeddedDocumentListField, FloatField, IntField, ListField, MaskTargetsField, ObjectIdField, ReferenceField, StringField
  import fiftyone.core.utils
  from .database import patch_saved_views, patch_annotation_runs, patch_brain_runs, patch_evaluations, patch_runs
  from .document import Document
  from .embedded_document import EmbeddedDocument
  from .runs import RunDocument
  from .utils import create_field
  from .views import SavedViewDocument
label_desc: Use image node_id 6 for calling a global function with example usage: _update_path(p, path, new_path) and returns: unknown