class_docstr: Matches requests with paths specified by ``path_pattern`` regex.
class_docstr_tok: ["Matches","requests","with","paths","specified","by","``","path_pattern","``","regex","."]
code: def match(self, request):
      match = self.regex.match(request.path)
      if match is None:
          return None
      if not self.regex.groups:
          return {}
  
      path_args, path_kwargs = [], {}
  
      # Pass matched groups to the handler.  Since
      # match.groups() includes both named and
      # unnamed groups, we want to use either groups
      # or groupdict but not both.
      if self.regex.groupindex:
          path_kwargs = dict(
              (str(k), _unquote_or_none(v))
              for (k, v) in match.groupdict().items()
          )
      else:
          path_args = [_unquote_or_none(s) for s in match.groups()]
  
      return dict(path_args=path_args, path_kwargs=path_kwargs)
  
imports: from __future__ import absolute_import, division, print_function
  import re
  from functools import partial
  from tornado import httputil
  from tornado.httpserver import _CallableAdapter
  from tornado.escape import url_escape, url_unescape, utf8
  from tornado.log import app_log
  from tornado.util import basestring_type, import_object, re_unescape, unicode_type
label_desc: Use image node_id 2 for calling the PathMatches obj's underlying member method code with example usage: obj.match(request) and returns: dict, None, dict