code: def test_to_series_dict(dummy_data):
      # dataframe to series dict
      series_dict = dataframe_to_series_dict(dummy_data)
      assert isinstance(series_dict, dict)
      assert series_dict.keys() == set(dummy_data.columns)
      for key in series_dict.keys():
          assert_index_equal(series_dict[key].index, dummy_data.index)
          assert_series_equal(series_dict[key], dummy_data[key])
  
      # series to series dict
      series_dict = series_to_series_dict(dummy_data["TMP"])
      assert isinstance(series_dict, dict)
      assert series_dict.keys() == set(["TMP"])
      assert_index_equal(series_dict["TMP"].index, dummy_data.index)
      assert_series_equal(series_dict["TMP"], dummy_data["TMP"])
  
imports: import os
  import pandas
  from pandas.testing import assert_index_equal, assert_series_equal
  from .utils import dataframe_to_series_dict, dummy_data, logging_file_path, series_to_series_dict
label_desc: Use image node_id 4 for calling a global function with example usage: test_to_series_dict(dummy_data) without return types