code: def get_default_padding(self):
          
  
          high = 1024 * 10 + self.size // 100  # 10 KiB + 1% of trailing data
          low = 1024 + self.size // 1000  # 1 KiB + 0.1% of trailing data
  
          if self.padding >= 0:
              # enough padding left
              if self.padding > high:
                  # padding too large, reduce
                  return low
              # just use existing padding as is
              return self.padding
          else:
              # not enough padding, add some
              return low
docs: The default implementation which tries to select a reasonable
          amount of padding and which might change in future versions.
  
          Returns:
              int: Amount of padding after saving