code: def test_create_dataset_with_dataframe_value_error(
      sagemaker_session_mock,
  ):
      feature_store = FeatureStore(
          sagemaker_session=sagemaker_session_mock
      )
      with pytest.raises(ValueError) as error:
          feature_store.create_dataset(
              base=DATAFRAME,
              included_feature_names=["feature_1", "feature_2"],
              output_path="file/to/path",
              kms_key_id="kms-key-id",
          )
      assert (
          "You must provide a record identifier feature name and an event time identifier feature "
          + "name if specify DataFrame as base."
          in str(error)
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/feature_store/test_feature_store.py
imports: from __future__ import absolute_import
  import datetime
  import pandas
  import pytest
  from mock import Mock
  from sagemaker.feature_store.feature_store import FeatureStore
  from sagemaker.feature_store.inputs import Filter, FilterOperatorEnum, ResourceEnum, SearchOperatorEnum, SortOrderEnum, Identifier
label_desc: Use image node_id 6 for calling a global function with example usage: test_create_dataset_with_dataframe_value_error(sagemaker_session_mock) without return types