code: def verify_package_status(self):
          
          # rpm-libs is required for /usr/lib64/librpm*.so
          self.rpm.verify_packages_installed(['rpm-libs'])
  
          # Check RPM so files to build the Python binding.
          message_format = '''
  RPM: {0} or
  RPM download tool (dnf-plugins-core (dnf) or yum-utils (yum)) required.
  Install any of those.
  '''
          if self.rpm.has_composed_rpm_bulid_libs():
              if (not self.rpm.is_package_installed('rpm-build-libs')
                 and not self.rpm.is_downloadable()):
                  raise InstallError(message_format.format('rpm-build-libs'))
          else:
              # All the needed so files are included in rpm-libs package.
              pass
docs: Verify dependency RPM package status.