code: def find_handler(  # type: ignore[no-untyped-def]
      self, request: tornado.httputil.HTTPServerRequest, **kwargs
  ):
      handler = super().find_handler(request, **kwargs)
      if handler and not issubclass(
          handler.handler_class, web.ErrorHandler
      ):
          return handler
      else:
          for app in self.applications:
              handler = app.find_handler(request, **kwargs) or handler
              if handler and not issubclass(
                  handler.handler_class, web.ErrorHandler
              ):
                  break
          return handler
  
file_path: distributed/distributed/http/routing.py
imports: from __future__ import annotations
  import os
  import tornado.httputil
  import tornado.routing
  from tornado import web
label_desc: Use image node_id 2 for calling the RoutingApplication obj's underlying member method code with example usage: obj.find_handler(request) and returns: handler, handler