code: def box_gates(savefile="box_gates.png"):
      drawer = MPLDrawer(n_wires=2, n_layers=1)
  
      drawer.box_gate(layer=0, wires=(0, 1), text="CY")
      plt.savefig(folder / savefile)
      plt.close()
  
file_path: pennylane/doc/_static/drawer/mpldrawer_examples.py
imports: import pathlib
  import matplotlib.pyplot
  from pennylane.drawer import MPLDrawer
  from pennylane.drawer.style import _set_style
label_desc: Use image node_id 3 for calling a global function with example usage: box_gates(savefile) without return types