code: def plot_early_stopping(
      pipeline_result, *, ax=None, lineplot_kwargs=None
  ):
      """Plot the evaluations during early stopping."""
      import seaborn as sns
  
      if (
          not isinstance(pipeline_result.stopper, EarlyStopper)
          or not pipeline_result.stopper.results
      ):
          raise ValueError
  
      ax = _ensure_ax(ax)
  
      x = [
          (1 + e) * pipeline_result.stopper.frequency
          for e in range(len(pipeline_result.stopper.results))
      ]
      rv = sns.lineplot(
          x=x,
          y=pipeline_result.stopper.results,
          ax=ax,
          marker="o",
          **(lineplot_kwargs or {}),
      )
  
      ax.set_ylabel(pipeline_result.stopper.metric)
      ax.set_xlabel("Epoch")
      ax.set_title(
          pipeline_result.title
          if pipeline_result.title is not None
          else "Early Stopper Evaluation Plot"
      )
      return rv
  
file_path: pykeen/src/pykeen/pipeline/plot_utils.py
imports: import logging
  from typing import Callable, Mapping, Optional, Set
  from ..losses import loss_resolver
  from ..models.nbase import ERModel
  from ..nn.representation import Representation
  from ..stoppers import EarlyStopper
label_desc: Use image node_id 2 for calling a global function with example usage: plot_early_stopping(pipeline_result) and returns: rv