code: def to_dict(self):
          
          return {
              'definition': self.definition,
              'id': self.term_id,
              'image': self.image.to_dict(),
              'rank': self.rank,
              'term': self.term
          }
docs: Convert Term into raw dictionary data.