def network_image(self, net, outfile1, outfile2, node_positions, 
                      dot="dot", neato="neato"):
        # with network's optimal layout
        fd,fname = tempfile.mkstemp()
        net.as_dotfile(fname)
        os.system("%s -Tpng -o%s %s" % (dot, outfile1, fname))
        os.remove(fname)

        # with given layout
        net.node_positions = node_positions
        fd,fname = tempfile.mkstemp()
        net.as_dotfile(fname)
        os.system((neato, outfile2, fname) % "%s -n1 -Tpng -o%s %s")
        os.remove(fname)
dataset/ETHPy150Open abhik/pebl/src/pebl/result.py/HtmlFormatter.network_image/swapped operands of `%`