def _validate_backend_language(backend, language):
 langs = _lang_lookup.get(backend.upper(), False)
 if (not langs):
  raise ValueError(('Unrecognized backend: ' + backend))
 if (language.upper() not in langs):
  raise ValueError('Backend {0} and language {1} are incompatible'.format(backend, language))

def _validate_backend_language ( backend , language ) : langs = _lang_lookup . get ( backend . upper ( ) , False ) if ( not langs ) : raise ValueError ( ( 'Unrecognized backend: ' + backend ) ) if ( language . upper ( ) not in langs ) : raise ValueError ( 'Backend {0} and language {1} are incompatible' . format ( backend , language ) )
throws error if backend and language are incompatible .