code: def pack(self, value=None):
          
          buff = self.body
          if not value:
              value = self.body
  
          if value and hasattr(value, 'pack'):
              self.body = BinaryData(value.pack())
          stats_reply_packed = super().pack()
  
          self.body = buff
          return stats_reply_packed
docs: Pack a StatsReply using the object's attributes.
  
          This method will pack the attribute body and body_type before pack the
          StatsReply object, then will return this struct as a binary data.
  
          Returns:
              bytes: Binary data with StatsReply packed.