code: def strip_path_prefix(ipath, prefix):
      
      if prefix is None:
          return ipath
  
      return ipath[len(prefix):] if ipath.startswith(prefix) else ipath
docs: Strip prefix from path.
  
      Args:
          ipath: input path
          prefix: the prefix to remove, if it is found in :ipath:
  
      Examples:
          >>> strip_path_prefix("/foo/bar", "/bar")
          '/foo/bar'
          >>> strip_path_prefix("/foo/bar", "/")
          'foo/bar'
          >>> strip_path_prefix("/foo/bar", "/foo")
          '/bar'
          >>> strip_path_prefix("/foo/bar", "None")
          '/foo/bar'