def tikznode(x, y, text, modifier=""):
    """
    Return string for TikZ command to draw a node containing the text at (x,y), with optional `modifier` string to set draw style.
    """
    return f"\\draw ({x}, {y}) {modifier} node{{{text}}};" if not (text == "") else ""