parameters: (self, token, args)
docstring: Calls the registered function for `token` with args.
docstring_summary: Calls the registered function for `token` with args.
docstring_tokens: Calls the registered function for token with args .
function: def __call__(self, token, args):
      """Calls the registered function for `token` with args."""
      func = self._funcs[token]
      if func is None:
        raise ValueError("callback %s is not found" % token)
      ret = func(*args)
      # Ensures that we return either a single numpy array or a list of numpy
      # arrays.
      if isinstance(ret, (tuple, list)):
        return [self._convert(x) for x in ret]
      else:
        return self._convert(ret)
function_tokens: def __call__ ( self , token , args ) : func = self . _funcs [ token ] if func is None : raise ValueError ( "callback %s is not found" % token ) ret = func ( * args ) # Ensures that we return either a single numpy array or a list of numpy # arrays. if isinstance ( ret , ( tuple , list ) ) : return [ self . _convert ( x ) for x in ret ] else : return self . _convert ( ret )