parameters: (self, current_chunksize, file_size=None)
return_statement: return self._adjust_for_chunksize_limits(chunksize)
docstring: Get a chunksize close to current that fits within all S3 limits.
  
          :type current_chunksize: int
          :param current_chunksize: The currently configured chunksize.
  
          :type file_size: int or None
          :param file_size: The size of the file to upload. This might be None
              if the object being transferred has an unknown size.
  
          :returns: A valid chunksize that fits within configured limits.
docstring_summary: Get a chunksize close to current that fits within all S3 limits.
docstring_tokens: Get a chunksize close to current that fits within all S3 limits .
function: def adjust_chunksize(self, current_chunksize, file_size=None):
          """Get a chunksize close to current that fits within all S3 limits.
  
          :type current_chunksize: int
          :param current_chunksize: The currently configured chunksize.
  
          :type file_size: int or None
          :param file_size: The size of the file to upload. This might be None
              if the object being transferred has an unknown size.
  
          :returns: A valid chunksize that fits within configured limits.
          """
          chunksize = current_chunksize
          if file_size is not None:
              chunksize = self._adjust_for_max_parts(chunksize, file_size)
          return self._adjust_for_chunksize_limits(chunksize)
function_tokens: def adjust_chunksize ( self , current_chunksize , file_size = None ) : chunksize = current_chunksize if file_size is not None : chunksize = self . _adjust_for_max_parts ( chunksize , file_size ) return self . _adjust_for_chunksize_limits ( chunksize )