def graphviz_attrs(**attrs):
    """
    >>> graphviz_attrs(resolution=23, label="My name")
    '[resolution=23, label="My name"]'
    """

    def gen():
        for k, v in attrs.items():
            if isinstance(v, str):
                yield f'{k}="{v}"'
            else:
                yield f'{k}={v}'

    return '[' + ', '.join(gen()) + ']'