code: def plotInterval(time, upper, lower, intervalType, color="black"):
      """
      The function to plot confidence interval.
  
      Args:
          time: time label
          upper: the upper bound
          lower: the lower bound
          color: the color of the plot
      """
      ALPHA = 0.4
      if time is None:
          if intervalType == "line":
              plt.plot(upper, "--", color=color)
              plt.plot(lower, "--", color=color)
          elif intervalType == "ribbon":
              plt.fill_between(
                  upper, lower, facecolor=color, alpha=ALPHA
              )
      else:
          if intervalType == "line":
              plt.plot(time, upper, "--", color=color)
              plt.plot(time, lower, "--", color=color)
          elif intervalType == "ribbon":
              plt.fill_between(
                  time, upper, lower, facecolor=color, alpha=ALPHA
              )
  
file_path: pydlm/pydlm/plot/dlmPlot.py
imports: import matplotlib.pyplot
  from pydlm.base.tools import getInterval
label_desc: Use image node_id 8 for calling a global function with example usage: plotInterval(time, upper, lower, intervalType, color) without return types