code: def path_helper(self, operations, urlspec, **kwargs):
          
          if not isinstance(urlspec, URLSpec):
              urlspec = URLSpec(*urlspec)
          for operation in self._operations_from_methods(urlspec.handler_class):
              operations.update(operation)
          if not operations:
              raise APISpecError(
                  'Could not find endpoint for urlspec {0}'.format(urlspec),
              )
          params_method = getattr(urlspec.handler_class, list(operations.keys())[0])
          operations.update(self._extensions_from_handler(urlspec.handler_class))
          return self.tornadopath2openapi(urlspec, params_method)
docs: Path helper that allows passing a Tornado URLSpec or tuple.