code: def app_strip_relative_path(requests_pathname, path):
      if path is None:
          return None
      if (
          requests_pathname != "/"
          and not path.startswith(requests_pathname.rstrip("/"))
      ) or (requests_pathname == "/" and not path.startswith("/")):
          raise exceptions.UnsupportedRelativePath(
              f"""
              Paths that aren't prefixed with requests_pathname_prefix are not supported.
              You supplied: {path} and requests_pathname_prefix was {requests_pathname}
              """
          )
      if requests_pathname != "/" and path.startswith(
          requests_pathname.rstrip("/")
      ):
          path = path.replace(
              # handle the case where the path might be `/my-dash-app`
              # but the requests_pathname_prefix is `/my-dash-app/`
              requests_pathname.rstrip("/"),
              "",
              1,
          )
      return path.strip("/")
  
file_path: dash/dash/_get_paths.py
imports: from ._utils import AttributeDict
  from .None import exceptions
label_desc: Use image node_id 6 for calling a global function with example usage: app_strip_relative_path(requests_pathname, path) and returns: path, None