code: def NormalizePath(path):
    
    path = os.path.normpath(path)
  
    for sys_path in sys.path:
      if not sys_path:
        continue
  
      # Append '/' at the end of the path if it's not there already.
      sys_path = os.path.join(sys_path, '')
  
      if path.startswith(sys_path):
        return path[len(sys_path):]
  
    return path
docs: Removes any Python system path prefix from the given path.
  
    Python keeps almost all paths absolute. This is not what we actually
    want to return. This loops through system paths (directories in which
    Python will load modules). If "path" is relative to one of them, the
    directory prefix is removed.
  
    Args:
      path: absolute path to normalize (relative paths will not be altered)
  
    Returns:
      Relative path if "path" is within one of the sys.path directories or
      the input otherwise.