code: def test_plot_series_runs_without_error(series_to_plot):
      """Test whether plot_series runs without error."""
      _check_soft_dependencies("matplotlib")
      import matplotlib
      import matplotlib.pyplot as plt
  
      matplotlib.use("agg")
      _plot_series(series_to_plot)
      plt.gcf().canvas.draw_idle()
  
      # Test with labels specified
      if isinstance(series_to_plot, pd.Series):
          labels = ["Series 1"]
      elif isinstance(series_to_plot, tuple):
          labels = [f"Series {i+1}" for i in range(len(series_to_plot))]
      _plot_series(series_to_plot, labels=labels)
      plt.gcf().canvas.draw_idle()
      plt.close()
  
imports: import re
  import numpy
  import pandas
  import pytest
  from sktime.datasets import load_airline
  from sktime.tests.test_switch import run_test_for_class
  from sktime.utils.plotting import plot_correlations, plot_lags, plot_series
  from sktime.utils.validation._dependencies import _check_soft_dependencies
  from sktime.utils.validation.series import VALID_DATA_TYPES
label_desc: Use image node_id 3 for calling a global function with example usage: test_plot_series_runs_without_error(series_to_plot) without return types