code: def locate_endpoint_function(self, name=None):
          'Locate endpoint function given name of view'
          if name is not None:
              ep = "%s_%s" %(self._base_pathname,
                             name)
          else:
              ep = self._base_pathname
          return self._notflask.endpoints[ep]['view_func'f locate_endpoint_function(self, name=None):
          'Locate endpoint function given name of view'
          if name is not None:
              ep = "%s_%s" %(self._base_pathname,
                             name)
          else:
              ep = self._base_pathname
          return self._notflask.endpoints[ep]['view_func']
docs: Locate endpoint function given name of view