class_docstr: Test docstring.
class_docstr_tok: ["Test","docstring","."]
code: def onclick(self, event):
      if event.xdata and event.ydata:
          if event.button == 1:
              self.controller.add_example(event.xdata, event.ydata, 1)
          elif event.button == 3:
              self.controller.add_example(event.xdata, event.ydata, -1)
  
imports: import matplotlib
  from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
  import sys
  import tkinter
  import numpy
  from matplotlib.contour import ContourSet
  from matplotlib.figure import Figure
  from sklearn import svm
  from sklearn.datasets import dump_svmlight_file
label_desc: Use image node_id 3 for calling the View obj's underlying member method code with example usage: obj.onclick(event) without return types