def reverse(endpoint, args=None, kwargs=None, is_dashboard_endpoint=True):
 is_endpoint_declared = ((endpoint in INSTRUCTOR_GET_ENDPOINTS) or (endpoint in INSTRUCTOR_POST_ENDPOINTS))
 if (is_dashboard_endpoint and (is_endpoint_declared is False)):
  raise ValueError('The endpoint {} must be declared in ENDPOINTS before use.'.format(endpoint))
 return django_reverse(endpoint, args=args, kwargs=kwargs)

def reverse ( endpoint , args = None , kwargs = None , is_dashboard_endpoint = True ) : is_endpoint_declared = ( ( endpoint in INSTRUCTOR_GET_ENDPOINTS ) or ( endpoint in INSTRUCTOR_POST_ENDPOINTS ) ) if ( is_dashboard_endpoint and ( is_endpoint_declared is False ) ) : raise ValueError ( 'The endpoint {} must be declared in ENDPOINTS before use.' . format ( endpoint ) ) return django_reverse ( endpoint , args = args , kwargs = kwargs )
reverse a tensor along the the specified axes .