def unserialize_dimensions(dims):
    """
    >>> unserialize_dimensions("")
    {}
    >>> unserialize_dimensions("time=foo,elevation=100m")
    {'elevation': '100m', 'time', 'foo'}
    """
    if not dims:
        return {}
    return dict(kv.split('=', 1) for kv in dims.split(','))