def GetGeneratorByLanguage(language_or_generator):

  try:
    return _ALL_GENERATORS[language_or_generator]
  except KeyError:
    raise ValueError('Unsupported language: %s' % language_or_generator)
Return the appropriate generator for this language.
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/generator_lookup.py/GetGeneratorByLanguage