def GetMavenArtifactId(api_name, package_path='', canonical_name='',
                       owner_domain='google.com'):
  # TODO(user): This logic is meant to match equivalent
  # logic in api.Api._SetupModules() in setting up the path,
  # using canonicalName only if packagePath is set, for backwards
  # compatibility.  A TODO there proposes a breaking change of
  # obeying canonicalName unconditionally; were that done this
  # would have to change likewise for our tests to pass.
  if package_path and canonical_name:
    api_name = canonical_name.lower().replace(' ', '')

  parts = []
  if owner_domain == 'google.com':
    parts.extend(['google', 'api', 'services'])
  if package_path:
    parts.extend(re.split(r'\.|/', package_path))
  parts.append(api_name)
  return '-'.join(parts)
Restore sys.path
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/utilities/maven_utils.py/GetMavenArtifactId--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_site.py/HelperFunctionsTests.tearDown