code: def visualize(X, contexts, file):
      import matplotlib.pyplot
      import mpld3
  
      fig, ax = matplotlib.pyplot.subplots()
  
      ax.grid(True, alpha=0.3)
  
      points = ax.plot(
          X[:, 0],
          X[:, 1],
          "o",
          color="b",
          mec="k",
          ms=5,
          mew=1,
          alpha=0.6,
      )
  
      ax.set_xlabel("x")
      ax.set_ylabel("y")
      ax.set_title("Hover mouse to reveal context", size=20)
  
      tooltip = mpld3.plugins.PointHTMLTooltip(
          points[0], contexts, voffset=10, hoffset=10
      )
  
      mpld3.plugins.connect(fig, tooltip)
  
      mpld3.save_html(fig, file)
  
file_path: flair/flair/visual/manifold.py
imports: import numpy
  import tqdm
  from sklearn.manifold import TSNE
label_desc: Use image node_id 7 for calling the Visualizer obj's underlying member method code with example usage: obj.visualize(X, contexts, file) without return types