@classmethod<EOL><INDENT>def _replace_type_to_regex(cls, match):<DEDENT>
groupdict = match.groupdict()<EOL>_type = groupdict.get('<STR_LIT:type>')<EOL>type_regex = cls.TYPE_REGEX_MAP.get(_type, '<STR_LIT>')<EOL>name = groupdict.get('<STR_LIT:name>')<EOL>return r'<STR_LIT>'.format(<EOL>name=name, type_regex=type_regex<EOL>)<EOL>
/<int:id>  -> r'(?P<id>\d+)