code: def test_prepare_for_training_wrong_value_upper_mini_batch_size(
      sagemaker_session,
  ):
      ipinsights = IPInsights(
          base_job_name="ipinsights",
          sagemaker_session=sagemaker_session,
          **ALL_REQ_ARGS,
      )
  
      data = RecordSet(
          "s3://{}/{}".format(BUCKET_NAME, PREFIX),
          num_records=1,
          feature_dim=FEATURE_DIM,
          channel="train",
      )
      with pytest.raises(ValueError):
          ipinsights._prepare_for_training(data, 500001)
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker import image_uris
  from sagemaker.amazon.ipinsights import IPInsights, IPInsightsPredictor
  from sagemaker.amazon.amazon_estimator import RecordSet
  from sagemaker.session_settings import SessionSettings
label_desc: Use image node_id 14 for calling a global function with example usage: test_prepare_for_training_wrong_value_upper_mini_batch_size(sagemaker_session) without return types