code: def __init__(self, points, line, patch):
      if isinstance(points, mpl.lines.Line2D):
          suffix = "pts"
      else:
          suffix = None
  
      self.dict_ = {
          "type": "drag",
          "idpts": utils.get_id(points, suffix),
          "idline": utils.get_id(line),
          "idpatch": utils.get_id(patch),
      }
  
file_path: mpld3/examples/heart_path.py
imports: import numpy
  import matplotlib.pyplot
  import matplotlib
  import matplotlib.path
  import matplotlib.patches
  import mpld3
  from mpld3 import plugins, utils
label_desc: Use image node_id 1 to create a new LinkedDragPlugin object from inherited base classes: plugins with example: obj = LinkedDragPlugin(points, line, patch)