code: def _path_starts_with(path: str, path_prefix: str) -> bool:
      path = os.path.abspath(path)
      path_prefix = os.path.abspath(path_prefix)
      try:
          common = os.path.commonpath([path, path_prefix])
      except ValueError:
          # path and path_prefix are both absolute, the only case will raise a
          # ValueError is different drives.
          # https://docs.python.org/3/library/os.path.html#os.path.commonpath
          return False
      try:
          return common == path_prefix or os.path.samefile(
              common, path_prefix
          )
      except OSError:
          # One of the paths may not exist.
          return False
  
imports: from __future__ import annotations
  import functools
  import os
  import sys
  import traceback
  import types
  from typing import Any, Callable, TypeVar, cast
  from jax._src import config
  from jax._src import util
  from jax._src.lib import xla_extension
label_desc: Use image node_id 2 for calling a global function with example usage: _path_starts_with(path, path_prefix) and returns: unknown, False, False