code: def pack(self, value=None):
          
          backup = self.body
          if not value:
              value = self.body
  
          if hasattr(value, 'pack'):
              self.body = value.pack()
          stats_request_packed = super().pack()
  
          self.body = backup
          return stats_request_packed
docs: Pack according to :attr:`body_type`.
  
          Make `body` a binary pack before packing this object. Then, restore
          body.