def _choices(text, randomized=True):
    """
    Return all the possible choices from the following format: {a|b|c}

    @type text: str
    @param text: Text written used spin syntax

    @type randomized: bool
    @param text: Specifies if the choices will be given in random order or not.

    @return: A generator that yields all the possible choices
    """
    if text:
        # regex pattern that will be used for splitting
        pattern = r'{0}|{1}|{2}'.format(
            re.escape(char_opening),
            re.escape(char_closing),
            re.escape(char_separator)
        )

        choices = [x for x in re.split(pattern, text) if x]
        if randomized:
            random.shuffle(choices)
        for x in choices:
            yield x
Return all the possible choices from the following format: {a|b|c}

    @type text: str
    @param text: Text written used spin syntax

    @type randomized: bool
    @param text: Specifies if the choices will be given in random order or not.

    @return: A generator that yields all the possible choices