code: def test_utils_get_base_frame_type_pandas():
      with pytest.raises(TypeError):
          get_base_frame_type("DataFrame", is_dataframe_like, None)
  
      df = pd.DataFrame(
          {"x": np.arange(10, dtype=float), "y": [1.0, 2.0] * 5}
      )
  
      assert pd.DataFrame == get_base_frame_type(
          "DataFrame", is_dataframe_like, df
      )
      with pytest.raises(TypeError):
          get_base_frame_type("Series", is_series_like, df)
      with pytest.raises(TypeError):
          get_base_frame_type("Index", is_index_like, df)
  
      # casts Series to DataFrame, if that's what we ask for
      assert pd.DataFrame == get_base_frame_type(
          "DataFrame", is_dataframe_like, df.x
      )
      assert pd.Series == get_base_frame_type(
          "Series", is_series_like, df.x
      )
      with pytest.raises(TypeError):
          get_base_frame_type("Index", is_index_like, df.x)
  
      # casts Series to DataFrame, if that's what we ask for
      assert pd.DataFrame == get_base_frame_type(
          "DataFrame", is_dataframe_like, df.index
      )
      with pytest.raises(TypeError):
          get_base_frame_type("Series", is_series_like, df.index)
      assert issubclass(
          get_base_frame_type("Index", is_index_like, df.index),
          pd.Index,
      )
  
imports: import pytest
  from streamz.dataframe.utils import is_dataframe_like, is_series_like, is_index_like, get_base_frame_type, get_dataframe_package
  import pandas
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_utils_get_base_frame_type_pandas() without return types