code: def handle_request(cls, request, dispatcher):
          
          rs = request if isinstance(request, JSONRPC20BatchRequest) \
              else [request]
          responses = [r for r in cls._get_responses(rs, dispatcher)
                       if r is not None]
  
          # notifications
          if not responses:
              return
  
          if isinstance(request, JSONRPC20BatchRequest):
              return JSONRPC20BatchResponse(*responses)
          else:
              return responses[0]
docs: Handle request data.
  
          At this moment request has correct jsonrpc format.
  
          :param dict request: data parsed from request_str.
          :param jsonrpc.dispatcher.Dispatcher dispatcher:
  
          .. versionadded: 1.8.0