<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_default_save_path():
 """Return default save path for the packages"""

    macro = '%{_topdir}'
    if rpm:
        save_path = rpm.expandMacro(macro)
    else:
        save_path = rpm_eval(macro)
        if not save_path:
            logger.warn("rpm tools are missing, using default save path "
                        "~/rpmbuild/.")
            save_path = os.path.expanduser('~/rpmbuild')
    return save_path