code: def test_to_csv_file_not_support_base_type(
      sagemaker_session_mock, feature_group_mock
  ):
      dataset_builder = DatasetBuilder(
          sagemaker_session=sagemaker_session_mock,
          base=feature_group_mock,
          output_path="file/to/path",
      )
      with pytest.raises(ValueError) as error:
          dataset_builder.to_csv_file()
      assert (
          "Base must be either a FeatureGroup or a DataFrame."
          in str(error)
      )
  
imports: from __future__ import absolute_import
  import datetime
  import pandas
  import pytest
  import os
  from mock import Mock, patch
  from sagemaker.feature_store.dataset_builder import DatasetBuilder, FeatureGroupToBeMerged, TableType, JoinComparatorEnum, JoinTypeEnum
  from sagemaker.feature_store.feature_group import FeatureDefinition, FeatureGroup, FeatureTypeEnum
label_desc: Use image node_id 15 for calling a global function with example usage: test_to_csv_file_not_support_base_type(sagemaker_session_mock, feature_group_mock) without return types