code: async def make_response(self, result: ResponseReturnValue) -> Response:
          
          status_or_headers = None
          headers = None
          status = None
          if isinstance(result, tuple):
              value, status_or_headers, headers = result + (None,) * (3 - len(result))
          else:
              value = result
  
          if value is None:
              raise TypeError('The response value returned by the view function cannot be None')
  
          if isinstance(status_or_headers, (dict, list)):
              headers = status_or_headers
              status = None
          elif status_or_headers is not None:
              status = status_or_headers
  
          if not isinstance(value, Response):
              response = self.response_class(  # type: ignore
                  value, timeout=self.config['RESPONSE_TIMEOUT'],
              )
          else:
              response = value
  
          if status is not None:
              response.status_code = status  # type: ignore
  
          if headers is not None:
              response.headers.update(headers)  # type: ignore
  
          return response
docs: Make a Response from the result of the route handler.
  
          The result itself can either be:
            - A Response object (or subclass).
            - A tuple of a ResponseValue and a header dictionary.
            - A tuple of a ResponseValue, status code and a header dictionary.
  
          A ResponseValue is either a Response object (or subclass) or a str.