code: def _path_is_relative_to(path: pathlib.PurePath, base: str) -> bool:
      # Path.is_relative_to doesn't exist until Python 3.9
      try:
          path.relative_to(base)
          return True
      except ValueError:
          return False
  
imports: from __future__ import annotations
  import importlib.util
  import os
  import pathlib
  import sys
  import typing
  from collections import defaultdict
  from functools import update_wrapper
  from jinja2 import FileSystemLoader
  from werkzeug.exceptions import default_exceptions
  from werkzeug.exceptions import HTTPException
  from werkzeug.utils import cached_property
  from ..None import typing
  from ..cli import AppGroup
  from ..helpers import get_root_path
  from ..templating import _default_template_ctx_processor
label_desc: Use image node_id 3 for calling a global function with example usage: _path_is_relative_to(path, base) and returns: True, False