<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_icon(name, aspix=False, asicon=False):
 """Return the real file path to the given icon name If aspix is True return as QtGui.QPixmap, if asicon is True return as QtGui.QIcon. :param name: the name of the icon :type name: str :param aspix: If True, return a QtGui.QPixmap. :type aspix: bool :param asicon: If True, return a QtGui.QIcon. :type asicon: bool :returns: The real file path to the given icon name. If aspix is True return as QtGui.QPixmap, if asicon is True return as QtGui.QIcon. If both are True, a QtGui.QIcon is returned. :rtype: string :raises: None """

    datapath = os.path.join(ICON_PATH, name)
    icon = pkg_resources.resource_filename('jukeboxcore', datapath)
    if aspix or asicon:
        icon = QtGui.QPixmap(icon)
        if asicon:
            icon = QtGui.QIcon(icon)
    return icon