code: def test_get_data_types_to_plot(plot):
      """_summary_"""
      if plot is not None:
          ############################################################
          # 1. Nothing requested explicitly - returns defaults ----
          ############################################################
          returned_val = _get_data_types_to_plot(plot=plot)
          expected = [ALLOWED_PLOT_DATA_TYPES.get(plot)[0]]
          assert isinstance(returned_val, List)
          assert returned_val == expected
  
          #####################################
          # 2. Allowed values requested ----
          #####################################
          data_types_requested = ALLOWED_PLOT_DATA_TYPES.get(plot)
          returned_val = _get_data_types_to_plot(
              plot=plot, data_types_requested=data_types_requested
          )
          assert isinstance(returned_val, List)
  
          accepts_multiple = MULTIPLE_PLOT_TYPES_ALLOWED_AT_ONCE.get(
              plot
          )
          if accepts_multiple:
              # 2A. Multiple data types can be plotted at once ----
              assert returned_val == data_types_requested
          else:
              # 2B. Only one data type can be plotted at once ----
              assert returned_val == [data_types_requested[0]]
  
          ######################################
          # 3. Incorrect value requested ----
          ######################################
          with pytest.raises(ValueError) as errmsg:
              _ = _get_data_types_to_plot(
                  plot=plot, data_types_requested="wrong"
              )
  
          # Capture Error message
          exceptionmsg = errmsg.value.args[0]
  
          # Check exact error received
          assert (
              "No data to plot. Please check to make sure that you have requested "
              "an allowed data type for plot" in exceptionmsg
          )
  
file_path: pycaret/tests/test_time_series_utils_plots.py
imports: from typing import List
  import pandas
  import pytest
  from plotly.subplots import make_subplots
  from time_series_test_utils import _ALL_PLOTS
  from pycaret.internal.plots.utils.time_series import ALLOWED_PLOT_DATA_TYPES, MULTIPLE_PLOT_TYPES_ALLOWED_AT_ONCE, _get_data_types_to_plot, _plot_fig_update, _reformat_dataframes_for_plots
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_data_types_to_plot(plot) without return types