docs: def parse_nvra(nvra):
      """
      Parse RPM N-E:V-R.A string to a dict.
  
      :param nvra: N-E:V-R.A string. This can be a file name or a file path including the '.rpm' suffix.
      :type nvra: str
      :rtype: dict, with "name", "epoch", "version", "release", and "arch" elements.
      """
      if nvra.endswith(".rpm"):
          nvra = nvra[:-4]
      result = RPM_NVRA_RE.match(nvra).groupdict()
      result["epoch"] = result["epoch"] or 0
      result["epoch"] = int(result["epoch"])
      return result