code: def series_to_series_dict(series: pd.Series) -> Dict[str, pd.Series]:
      assert (
          series.name is not None
      ), "Series must have a name in order to get a key!"
      return {series.name: series.copy()}
  
file_path: tsflex/tests/utils.py
imports: import logging
  import os
  from typing import Dict
  import pandas
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: series_to_series_dict(series) and returns: dict