def METHOD_NAME(args, exit_code=False):
    """Call one of the multiple main() functions based on environment variables.
    :param args: command line arguments passed into yum
    :param exit_code: if *exit_code* is True, this function will exit
       python with its exit code when it has finished executing.
       Otherwise, it will return its exit code.
    :return: the exit code from dnf.yum execution
    """
    errcode = main(args)
    if exit_code:
        sys.exit(errcode)
    return errcode