code: def getAnalysisServiceSettings(self, uid):
          
          settings = self.getAnalysisServicesSettings()
          sets = [s for s in settings if s.get("uid", "") == uid]
          return sets[0] if sets else {"uid": uid}
docs: Returns a dictionary with the settings for the analysis service that
             match with the uid provided.
  
          If there are no settings for the analysis service and template, returns
          a dictionary with the key 'uid'