code: def test_feature_store_create_with_config_injection(
      sagemaker_session,
      role_arn,
      feature_group_dummy_definitions,
      s3_uri,
  ):
      sagemaker_session.sagemaker_config = (
          SAGEMAKER_CONFIG_FEATURE_GROUP
      )
      sagemaker_session.create_feature_group = Mock()
  
      feature_group = FeatureGroup(
          name="MyFeatureGroup", sagemaker_session=sagemaker_session
      )
      feature_group.feature_definitions = (
          feature_group_dummy_definitions
      )
      feature_group.create(
          s3_uri=s3_uri,
          record_identifier_name="feature1",
          event_time_feature_name="feature2",
          enable_online_store=True,
      )
      expected_offline_store_kms_key_id = (
          SAGEMAKER_CONFIG_FEATURE_GROUP["SageMaker"]["FeatureGroup"][
              "OfflineStoreConfig"
          ]["S3StorageConfig"]["KmsKeyId"]
      )
      expected_role_arn = SAGEMAKER_CONFIG_FEATURE_GROUP["SageMaker"][
          "FeatureGroup"
      ]["RoleArn"]
      expected_online_store_kms_key_id = SAGEMAKER_CONFIG_FEATURE_GROUP[
          "SageMaker"
      ]["FeatureGroup"]["OnlineStoreConfig"]["SecurityConfig"][
          "KmsKeyId"
      ]
      sagemaker_session.create_feature_group.assert_called_with(
          feature_group_name="MyFeatureGroup",
          record_identifier_name="feature1",
          event_time_feature_name="feature2",
          feature_definitions=[
              fd.to_dict() for fd in feature_group_dummy_definitions
          ],
          role_arn=expected_role_arn,
          description=None,
          tags=None,
          online_store_config={
              "EnableOnlineStore": True,
              "SecurityConfig": {
                  "KmsKeyId": expected_online_store_kms_key_id
              },
          },
          offline_store_config={
              "DisableGlueTableCreation": False,
              "S3StorageConfig": {
                  "S3Uri": s3_uri,
                  "KmsKeyId": expected_offline_store_kms_key_id,
              },
          },
      )
  
imports: from __future__ import absolute_import
  import pandas
  import pytest
  from mock import Mock, patch, MagicMock
  from botocore.exceptions import ProfileNotFound
  from sagemaker.feature_store.feature_definition import FractionalFeatureDefinition, IntegralFeatureDefinition, StringFeatureDefinition, FeatureTypeEnum, VectorCollectionType, SetCollectionType, ListCollectionType
  from sagemaker.feature_store.feature_group import FeatureGroup, IngestionManagerPandas, AthenaQuery, IngestionError
  from sagemaker.feature_store.inputs import FeatureParameter, DeletionModeEnum, TtlDuration, OnlineStoreConfigUpdate, OnlineStoreStorageTypeEnum
  from tests.unit import SAGEMAKER_CONFIG_FEATURE_GROUP
label_desc: Use image node_id 8 for calling a global function with example usage: test_feature_store_create_with_config_injection(sagemaker_session, role_arn, feature_group_dummy_definitions, s3_uri) without return types