code: def GetVersionNamespace(version):
     
     ns = nsMap[version]
     if not ns:
        ns = serviceNsMap[version]
     versionId = versionIdMap[version]
     if not versionId:
        namespace = ns
     else:
        namespace = '%s/%s' % (ns, versionId)
     return namespace
docs: Get version namespace from version