code: def _maxSizeCheck(cls, obj):
          
          fail = False
          size = 0
  
          if isinstance(obj, numbers.Number):
              if obj > constants.MAX_FRAME_SIZE:
                  fail = True
                  size = obj
  
          elif hasattr(obj, '__len__'):
              size = len(obj)
              fail = size > constants.MAX_FRAME_SIZE
  
          if fail:
              raise MaxSizeException('Frame size %s > %s (MAX_FRAME_SIZE)' \
                      % (size, constants.MAX_FRAME_SIZE))
docs: Raise a MaxSizeException if ``obj`` exceeds MAX_FRAME_SIZE
  
          Args:
              obj (numbers.Number or collection):
  
          Raises:
              :class:`fileseq.exceptions.MaxSizeException`: