def _endpoint_from_view_func(view_func):
 assert (view_func is not None), 'expected view func if endpoint is not provided.'
 return view_func.__name__

def _endpoint_from_view_func ( view_func ) : assert ( view_func is not None ) , 'expected view func if endpoint is not provided.' return view_func . __name__
internal helper that returns the default endpoint for a given function .