code: def _add_corr_stems_subplot(
      fig: go.Figure,
      corr_values: np.ndarray,
      lags: np.ndarray,
      name: str,
      row: int,
      col: int,
  ) -> go.Figure:
      """Function to add the correlation stems (sticks) to a Plotly subplot
  
      Parameters
      ----------
      fig : go.Figure
          Plotly figure to which the stems needs to be added
      corr_values : np.ndarray
          The correlation values to plot
      lags : np.ndarray
          The lags corresponding to the correlation values
      name : str
          Name to show when hovering over plot
      row : int
          Row of the figure where the plot needs to be inserted. Starts from 1.
      col : int
          Column of the figure where the plot needs to be inserted. Starts from 1.
  
      Returns
      -------
      go.Figure
          Returns back the plotly figure with stems inserted
      """
      # Add corr plot stem lines ----
      [
          fig.add_scattergl(
              x=(lag, lag),
              y=(0, corr_values[lag]),
              mode="lines",
              line_color="#3f3f3f",
              row=row,
              col=col,
              name=name,
          )
          for lag in lags
      ]
  
      # Add corr plot stem endpoints ----
      fig.add_scattergl(
          x=lags,
          y=corr_values,
          mode="markers",
          marker_color="#1f77b4",
          marker_size=6,
          row=row,
          col=col,
          name=name,
      )
      return fig
  
imports: from math import ceil
  from typing import Any, Dict, List, Optional, Tuple, Union
  import matplotlib
  import matplotlib.pyplot
  import numpy
  import pandas
  import plotly.express
  import plotly.graph_objects
  import plotly.io
  from plotly.colors import DEFAULT_PLOTLY_COLORS
  from plotly.subplots import make_subplots
  from scipy.fft import fft, fftfreq
  from scipy.signal import periodogram
  from statsmodels.graphics.gofplots import qqplot
  from statsmodels.tsa.seasonal import STL, seasonal_decompose
  from statsmodels.tsa.stattools import acf, ccf, pacf
  from pycaret.internal.logging import get_logger
  from pycaret.utils.generic import _resolve_dict_keys
  from pycaret.utils.time_series import TSAllowedPlotDataTypes
label_desc: Use image node_id 3 for calling a global function with example usage: _add_corr_stems_subplot(fig, corr_values, lags, name, row, col) and returns: fig