code: def plot(
      pipeline_result,
      er_kwargs: Optional[Mapping[str, str]] = None,
      figsize=(10, 4),
  ):
      """Plot all plots."""
      import matplotlib.pyplot as plt
  
      fig, axes = plt.subplots(1, 2, figsize=figsize)
  
      pipeline_result.plot_losses(ax=axes[0])
      pipeline_result.plot_er(ax=axes[1], **(er_kwargs or {}))
  
      plt.tight_layout()
      return fig, axes
  
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 8 for calling a global function with example usage: plot(pipeline_result, er_kwargs, figsize) and returns: fig,  axes