def GetMavenVersion(api, language_version):
  if api.get('ownerDomain') == 'google.com':
    return '%s-rev%s-%s' %(api['version'],
                           api['revision'],
                           language_version)
  return '%s-%s-SNAPSHOT' % (api['version'], language_version)
Get the ephemeral events for each room the user is in
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/utilities/maven_utils.py/GetMavenVersion--crossover with--dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/sync.py/SyncHandler.ephemeral_by_room