def METHOD_NAME():
    """ Return dictionary mapping package name with repository from which it was installed.
    Note:
        There's no yum module for py3. The dnf module can be used only on RHEL 8+,
        on RHEL 7 there's a bug in dnf preventing us to do so:
        https://bugzilla.redhat.com/show_bug.cgi?id=1789840
    """
    if not no_yum:
        return _get_package_repository_data_yum()
    if not no_dnf:
        return _get_package_repository_data_dnf()
    raise StopActorExecutionError(message=no_yum_warning_msg)