def METHOD_NAME(self):
    filename = abspath(join(testdir, "plot_network4.png"))
    if isfile(filename):
        os.remove(filename)
    inp_file = join(ex_datadir, "Net1.inp")
    wn = wntr.network.WaterNetworkModel(inp_file)
    plt.figure()
    wntr.graphics.plot_network(
        wn,
        node_attribute={"11": 5, "21": 10},
        link_attribute={"112": 3, "113": 9},
        node_labels=True,
    )
    plt.savefig(filename, format="png")
    plt.close()
    self.assertTrue(isfile(filename))