code: def _create_feature_group_and_ingest_data(
      feature_group: FeatureGroup,
      dataframe: DataFrame,
      offline_store_s3_uri: str,
      record_identifier_name: str,
      event_time_name: str,
      role: str,
  ):
      feature_group.load_feature_definitions(data_frame=dataframe)
      feature_group.create(
          s3_uri=offline_store_s3_uri,
          record_identifier_name=record_identifier_name,
          event_time_feature_name=event_time_name,
          role_arn=role,
          enable_online_store=True,
      )
      _wait_for_feature_group_create(feature_group)
  
      ingestion_manager = feature_group.ingest(
          data_frame=dataframe, max_workers=3, wait=False
      )
      ingestion_manager.wait()
      assert 0 == len(ingestion_manager.failed_rows)
  
imports: from __future__ import absolute_import
  import datetime
  import json
  import time
  import dateutil.parser
  from contextlib import contextmanager
  import boto3
  import numpy
  import pandas
  import pytest
  from pandas import DataFrame
  from sagemaker.feature_store.feature_utils import get_feature_group_as_dataframe
  from sagemaker.feature_store.feature_definition import FractionalFeatureDefinition, StringFeatureDefinition, ListCollectionType
  from sagemaker.feature_store.feature_group import FeatureGroup
  from sagemaker.feature_store.feature_store import FeatureStore
  from sagemaker.feature_store.inputs import FeatureValue, FeatureParameter, TableFormatEnum, Filter, ResourceEnum, Identifier, DeletionModeEnum, TtlDuration, OnlineStoreConfigUpdate, OnlineStoreStorageTypeEnum
  from sagemaker.feature_store.dataset_builder import JoinTypeEnum
  from sagemaker.session import get_execution_role, Session
  from tests.integ.timeout import timeout
  from urllib.parse import urlparse
label_desc: Use image node_id 35 for calling a global function with example usage: _create_feature_group_and_ingest_data(feature_group, dataframe, offline_store_s3_uri, record_identifier_name, event_time_name, role) without return types