def convert_markers(marker):
    groups = group_markers([marker])
    requirements = {}

    def _group(_groups, or_=False):
        for group in _groups:
            if isinstance(group, tuple):
                (variable, op, value) = group
                group_name = str(variable)
                if (group_name not in requirements):
                    requirements[group_name] = [[]]
                elif or_:
                    requirements[group_name].append([])
                or_ = False
                requirements[group_name][(- 1)].append((str(op), str(value)))
            else:
                _group(group, or_=True)
    _group(groups)
    return requirements
def convert_markers(marker):
    groups = group_markers([marker])
    requirements = {}

    def _group(_groups, or_=False):
        for group in _groups:
            if isinstance(group, tuple):
                (variable, op, value) = group
                group_name = str(variable)
                if (group_name not in requirements):
                    requirements[group_name] = [[]]
                elif or_:
                    requirements[group_name].append([])
                or_ = False
                requirements[group_name][(- 1)].append((str(op), str(value)))
            else:
                _group(group, or_=True)
    _group(groups)
    return requirements