code: def get_request_from_view_args(
          self, view: typing.Callable, args: typing.Iterable, kwargs: typing.Mapping
      ) -> Request:
          
          req = None
          for arg in args:
              if isinstance(arg, web.Request):
                  req = arg
                  break
              elif isinstance(arg, web.View):
                  req = arg.request
                  break
          assert isinstance(req, web.Request), "Request argument not found for handler"
          return req
docs: Get request object from a handler function or method. Used internally by
          ``use_args`` and ``use_kwargs``.