def _GetSupportedApiVersions(versions, runtime):
 if ('supported_api_versions' in versions):
  return versions['supported_api_versions'].get(runtime, versions)['api_versions']
 return versions['api_versions']

def _GetSupportedApiVersions ( versions , runtime ) : if ( 'supported_api_versions' in versions ) : return versions [ 'supported_api_versions' ] . get ( runtime , versions ) [ 'api_versions' ] return versions [ 'api_versions' ]
returns the runtime-specific or general list of supported runtimes .