code: def IsPathSuffix(mod_path, path):
    
    return (mod_path.endswith(path) and
            (len(mod_path) == len(path) or
             mod_path[:-len(path)].endswith(os.sep)))
docs: Checks whether path is a full path suffix of mod_path.
  
    Args:
      mod_path: Must be an absolute path to a source file. Must not have
                file extension.
      path: A relative path. Must not have file extension.
  
    Returns:
      True if path is a full path suffix of mod_path. False otherwise.