def data_sharing_consent_requirement_at_login(request):
 if (not enterprise_enabled()):
  return None
 if data_sharing_consent_required_at_login(request):
  return 'required'
 if data_sharing_consent_requested(request):
  return 'optional'
 return None

def data_sharing_consent_requirement_at_login ( request ) : if ( not enterprise_enabled ( ) ) : return None if data_sharing_consent_required_at_login ( request ) : return 'required' if data_sharing_consent_requested ( request ) : return 'optional' return None
returns either optional or required based on where we are .