code: def test_plotscene(tmpdir):
      pg.setConfigOption("foreground", (0, 0, 0))
      w = pg.GraphicsLayoutWidget()
      w.show()
      p1 = w.addPlot()
      p2 = w.addPlot()
      p1.plot(
          [1, 3, 2, 3, 1, 6, 9, 8, 4, 2, 3, 5, 3], pen={"color": "k"}
      )
      p1.setXRange(0, 5)
      p2.plot(
          [1, 5, 2, 3, 4, 6, 1, 2, 4, 2, 3, 5, 3],
          pen={"color": "k", "cosmetic": False, "width": 0.3},
      )
      app.processEvents()
      app.processEvents()
  
      ex = pg.exporters.SVGExporter(w.scene())
  
      tf = tmpdir.join("expot.svg")
      ex.export(fileName=tf)
      # clean up after the test is done
      w.close()
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_plotscene(tmpdir) without return types