from typing import OrderedDict


def digest_node_line(line):
    """Return OrderedDict of relevant line parts."""
    line = line.strip()

    d = OrderedDict()
    d["num"], fields = line.split('[')
    fields = fields.replace('rounded,dashed', 'rounded-dashed')
    fields = fields.rstrip('];').split(',')
    fields[-1] = fields[-1].replace('rounded-dashed', 'rounded,dashed')
    for field in fields:
        key, value = field.split('=')
        d[key.strip()] = value.strip().replace('"', '').replace("'", "")

    return d