code: def my_image_2(
      figure: matplotlib.figure.Figure, ax: matplotlib.axes.Axes
  ) -> None:
      Xnew = np.linspace(X.min() - 0.5, X.max() + 0.5, 100)[:, None]
      Ypred = model.predict_f_samples(
          Xnew, full_cov=True, num_samples=10
      )
      ax.plot(Xnew.flatten(), np.squeeze(Ypred).T, "C0", lw=0.5)
      ax.scatter(X, Y)
  
file_path: GPflow/notebooks/getting_started/monitoring.pct.py
imports: import os
  import warnings
  import matplotlib
  import matplotlib.pyplot
  import numpy
  import tensorflow
  import gpflow
label_desc: Use image node_id 6 for calling a global function with example usage: my_image_2(figure, ax) without return types