code: def _make_ellipse(mean, cov, ax, level=0.95, color=None):
      """Support function for scatter_ellipse."""
      from matplotlib.patches import Ellipse
  
      v, w = np.linalg.eigh(cov)
      u = w[0] / np.linalg.norm(w[0])
      angle = np.arctan(u[1] / u[0])
      angle = 180 * angle / np.pi  # convert to degrees
      v = 2 * np.sqrt(
          v * stats.chi2.ppf(level, 2)
      )  # get size corresponding to level
      ell = Ellipse(
          mean[:2],
          v[0],
          v[1],
          180 + angle,
          facecolor="none",
          edgecolor=color,
          # ls='dashed',  #for debugging
          lw=1.5,
      )
      ell.set_clip_box(ax.bbox)
      ell.set_alpha(0.5)
      ax.add_artist(ell)
  
imports: import numpy
  from scipy import stats
  from .None import utils
label_desc: Use image node_id 1 for calling a global function with example usage: _make_ellipse(mean, cov, ax, level, color) without return types