Return all the possible guesses from the magic library about
    the content of the file.

    @param fullpath: location of the file
    @type fullpath: string
    @return: guesses about content of the file
    @rtype: tuple

def get_magic_guesses(fullpath):
    """
    Return all the possible guesses from the magic library about
    the content of the file.

    @param fullpath: location of the file
    @type fullpath: string
    @return: guesses about content of the file
    @rtype: tuple
    """
    if CFG_HAS_MAGIC == 1:
        magic_cookies = _get_magic_cookies()
        magic_result = []
        for key in magic_cookies.keys():
            magic_result.append(magic_cookies[key].file(fullpath))
        return tuple(magic_result)
    elif CFG_HAS_MAGIC == 2:
        magic_result = []
        for key in ({'mime': False, 'mime_encoding': False},
                    {'mime': True, 'mime_encoding': False},
                    {'mime': False, 'mime_encoding': True}):
            magic_result.append(_magic_wrapper(fullpath, **key))
        return tuple(magic_result)