code: def update(i):
      ax.clear()
      ax.scatter(X[:, 0], X[:, 1], s=10)
      ax.scatter(
          Xi[:i, 0],
          Xi[:i, 1],
          color="#FF6600",
          label="Submodular Selection",
      )
      ax.scatter(
          Xr[:i, 0],
          Xr[:i, 1],
          color="#8A2BE2",
          label="Random Selection",
          alpha=0.6,
      )
      ax.legend(fontsize=14)
      ax.set_xlim(-1, 14)
      ax.axis("off")
      plt.grid(False)
      return ax
  
imports: import matplotlib
  import matplotlib.pyplot
  from matplotlib.animation import FuncAnimation
  import numpy
  import seaborn
  from apricot import FacilityLocationSelection
label_desc: Use image node_id 1 for calling a global function with example usage: update(i) and returns: ax