code: def test_with_feature_group_throw_runtime_error(
      sagemaker_session_mock,
  ):
      feature_group = FeatureGroup(
          name="MyFeatureGroup",
          sagemaker_session=sagemaker_session_mock,
      )
      dataset_builder = DatasetBuilder(
          sagemaker_session=sagemaker_session_mock,
          base=feature_group,
          output_path="file/to/path",
      )
      sagemaker_session_mock.describe_feature_group.return_value = {
          "OfflineStoreConfig": {}
      }
      with pytest.raises(RuntimeError) as error:
          dataset_builder.with_feature_group(
              feature_group,
              "target-feature",
              ["feature-1", "feature-2"],
          )
      assert (
          "No metastore is configured with FeatureGroup MyFeatureGroup."
          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 6 for calling a global function with example usage: test_with_feature_group_throw_runtime_error(sagemaker_session_mock) without return types