def parse_options(source):
    options = {}
    tokens = [t.strip() for t in source.split('=')]

    name = tokens[0]
    for token in tokens[1:-1]:
        value, next_name = token.rsplit(' ', 1)
        options[name.strip()] = value
        name = next_name
    options[name.strip()] = tokens[-1].strip()
    return options
parses chart tag options
dataset/ETHPy150Open mher/chartkick.py/chartkick/templatetags/chartkick.py/parse_options