code: def get_keystone_manager(endpoint, api_version, **kwargs):
      
      if api_version == 2:
          return KeystoneManager2(endpoint, **kwargs)
      if api_version == 3:
          return KeystoneManager3(endpoint, **kwargs)
      raise ValueError('No manager found for api version {}'.format(api_version))
docs: Return a keystonemanager for the correct API version
  
      @param endpoint: the keystone endpoint to point client at
      @param api_version: version of the keystone api the client should use
      @param kwargs: token or username/tenant/password information
      @returns keystonemanager class used for interrogating keystone