code: def test_single_record_strategy_with_no_payload_limit():
      # passing 0 as the max_payload_size should work and a 1MB record should be returned
      # correctly.
      splitter = Mock()
      mb = 1024 * 1024
  
      buffer = ""
      while sys.getsizeof(buffer) < 2 * mb:
          buffer += "1" * 100
      splitter.split.return_value = [buffer]
  
      single_record = sagemaker.local.data.SingleRecordStrategy(
          splitter
      )
      batch_records = [r for r in single_record.pad("some_file", 0)]
      assert len(batch_records) == 1
  
imports: from __future__ import absolute_import
  import sys
  import pytest
  from mock import patch, Mock
  import sagemaker.amazon
  import sagemaker.local.data
label_desc: Use image node_id 16 for calling a global function with example usage: test_single_record_strategy_with_no_payload_limit() without return types