code: def _validate_payload_size(payload, size):
      """Check if a payload is within the size in MB threshold.
  
      Raise an exception if the payload is beyond the size in MB threshold.
  
      Args:
          payload: data that will be checked
          size (int): max size in MB
  
      Returns:
          bool: True if within bounds. if size=0 it will always return True
  
      Raises:
          RuntimeError: If the payload is larger a runtime error is thrown.
      """
  
      if _payload_size_within_limit(payload, size):
          return True
      raise RuntimeError(
          "Record is larger than %sMB. Please increase your max_payload"
          % size
      )
  
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 5 for calling a global function with example usage: _validate_payload_size(payload, size) and returns: True