code: def test_utils_get_base_frame_type_cudf():
      cudf = pytest.importorskip("cudf")
  
      df = cudf.DataFrame(
          {"x": np.arange(10, dtype=float), "y": [1.0, 2.0] * 5}
      )
  
      assert cudf.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)
  
      with pytest.raises(TypeError):
          get_base_frame_type("DataFrame", is_dataframe_like, df.x)
      assert cudf.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)
  
      with pytest.raises(TypeError):
          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),
          cudf.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 2 for calling a global function with example usage: test_utils_get_base_frame_type_cudf() without return types