class_docstr: Feed multiple records at a time for batch inference.
  
  Will group up as many records as possible within the payload specified.
class_docstr_tok: ["Feed","multiple","records","at","a","time","for","batch","inference",".","Will","group","up","as","many","records","as","possible","within","the","payload","specified","."]
docstr: Group together as many records as possible to fit in the specified 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.
  
      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
      """
      buffer = ""
      for element in self.splitter.split(file):
          if _payload_size_within_limit(buffer + element, size):
              buffer += element
          else:
              tmp = buffer
              buffer = element
              yield tmp
      if _validate_payload_size(buffer, size):
          yield buffer
  
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 MultiRecordStrategy obj's underlying member method code with example usage: obj.pad(file, size) without return types