class_docstr: Feed a single record at a time for batch inference.
  
  If a single record does not fit within the payload specified it will
  throw a RuntimeError.
class_docstr_tok: ["Feed","a","single","record","at","a","time","for","batch","inference",".","If","a","single","record","does","not","fit","within","the","payload","specified","it","will","throw","a","RuntimeError","."]
docstr: Group together as many records as possible to fit in the specified size.
  
  This SingleRecordStrategy will not group any record and will return
  them one by one as long as they are within the maximum size.
  
  Args:
      file (str): file path to read the records from.
      size (int): maximum size in MB that each group of records will be
          fitted to. passing 0 means unlimited size.
  
  Returns:
      generator of records
code: def pad(self, file, size=6):
      """Group together as many records as possible to fit in the specified size.
  
      This SingleRecordStrategy will not group any record and will return
      them one by one as long as they are within the maximum size.
  
      Args:
          file (str): file path to read the records from.
          size (int): maximum size in MB that each group of records will be
              fitted to. passing 0 means unlimited size.
  
      Returns:
          generator of records
      """
      for element in self.splitter.split(file):
          if _validate_payload_size(element, size):
              yield element
  
imports: from __future__ import absolute_import
  import os
  import platform
  import sys
  import tempfile
  from abc import ABCMeta
  from abc import abstractmethod
  from six import with_metaclass
  from six.moves.urllib.parse import urlparse
  import sagemaker.amazon.common
  import sagemaker.local.utils
  import sagemaker.utils
label_desc: Use image node_id 1 for calling the SingleRecordStrategy obj's underlying member method code with example usage: obj.pad(file, size) without return types