code: def hypermedia_out():
      '''
      Determine the best handler for the requested content type
  
      Wrap the normal handler and transform the output from that handler into the
      requested content type
      '''
      request = cherrypy.serving.request
      request._hypermedia_inner_handler = request.handler
  
      # If handler has been explicitly set to None, don't override.
      if request.handler is not None:
          request.handler = hypermedia_handlef hypermedia_out():
      '''
      Determine the best handler for the requested content type
  
      Wrap the normal handler and transform the output from that handler into the
      requested content type
      '''
      request = cherrypy.serving.request
      request._hypermedia_inner_handler = request.handler
  
      # If handler has been explicitly set to None, don't override.
      if request.handler is not None:
          request.handler = hypermedia_handler
docs: Determine the best handler for the requested content type
  
      Wrap the normal handler and transform the output from that handler into the
      requested content type