code: def write_hyper_response(self, links=[], meta={}, entity_name=None, entity=None, notifications=[], actions=[]):
          
          assert entity_name is not None
          assert entity is not None
  
          meta.update({
              "status": self.get_status()
          })
  
          self.write({
              "links": links,
              "meta": meta,
              entity_name: entity,
              "notifications": notifications,
              "actions": actions
          })
docs: Writes a hyper media response object
  
          :param list links: A list of links to the resources
          :param dict meta: The meta data for this response
          :param str entity_name: The entity name
          :param object entity: The Entity itself
          :param list notifications: List of notifications
          :param list actions: List of actions