code: def test_get_and_batch_get_record(
      feature_store_session,
      role,
      feature_group_name,
      pandas_data_frame,
      record,
  ):
      feature_group = FeatureGroup(
          name=feature_group_name,
          sagemaker_session=feature_store_session,
      )
      feature_group.load_feature_definitions(
          data_frame=pandas_data_frame
      )
  
      record_identifier_value_as_string = record[0].value_as_string
      with cleanup_feature_group(feature_group):
          feature_group.create(
              s3_uri=False,
              record_identifier_name="feature1",
              event_time_feature_name="feature3",
              role_arn=role,
              enable_online_store=True,
          )
          _wait_for_feature_group_create(feature_group)
          # Ingest data
          feature_group.put_record(record=record)
          # Retrieve data
          retrieved_record = feature_group.get_record(
              record_identifier_value_as_string=record_identifier_value_as_string,
          )
          record_names = list(map(lambda r: r.feature_name, record))
          assert len(retrieved_record) == len(record_names)
          for feature in retrieved_record:
              assert feature["FeatureName"] in record_names
          removed_feature_name = record_names.pop()
          # Retrieve data
          retrieved_record = feature_group.get_record(
              record_identifier_value_as_string=record_identifier_value_as_string,
              feature_names=record_names,
          )
          assert len(retrieved_record) == len(record_names)
          for feature in retrieved_record:
              assert feature["FeatureName"] in record_names
              assert feature["FeatureName"] is not removed_feature_name
          # Retrieve data
          retrieved_record = feature_group.get_record(
              record_identifier_value_as_string="1.0",
          )
          assert retrieved_record is None
  
          # Retrieve data using batch_get_record
          feature_store = FeatureStore(
              sagemaker_session=feature_store_session
          )
          records = feature_store.batch_get_record(
              identifiers=[
                  Identifier(
                      feature_group_name=feature_group_name,
                      record_identifiers_value_as_string=[
                          record_identifier_value_as_string
                      ],
                      feature_names=record_names,
                  )
              ]
          )["Records"]
          assert records[0]["FeatureGroupName"] == feature_group_name
          assert (
              records[0]["RecordIdentifierValueAsString"]
              == record_identifier_value_as_string
          )
          assert len(records[0]["Record"]) == len(record_names)
          for feature in records[0]["Record"]:
              assert feature["FeatureName"] in record_names
              assert feature["FeatureName"] is not removed_feature_name
  
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 22 for calling a global function with example usage: test_get_and_batch_get_record(feature_store_session, role, feature_group_name, pandas_data_frame, record) without return types