code: def __init__(self, points):
      if isinstance(points, mpl.lines.Line2D):
          suffix = "pts"
      else:
          suffix = None
  
      self.dict_ = {"type": "drag", "id": utils.get_id(points, suffix)}
  
imports: import numpy
  import matplotlib.pyplot
  import matplotlib
  import mpld3
  from mpld3 import plugins, utils
label_desc: Use image node_id 1 to create a new DragPlugin object from inherited base classes: plugins with example: obj = DragPlugin(points)