code: def profile_list(self, provider, lookup='all'):
          '''
          Return a mapping of all configured profiles
          '''
          data = {}
          lookups = self.lookup_profiles(provider, lookup)
  
          if not lookups:
              return data
  
          for alias, driver in lookups:
              if alias not in data:
                  data[alias] = {}
              if driver not in data[alias]:
                  data[alias][driver] = {}
          return datf profile_list(self, provider, lookup='all'):
          '''
          Return a mapping of all configured profiles
          '''
          data = {}
          lookups = self.lookup_profiles(provider, lookup)
  
          if not lookups:
              return data
  
          for alias, driver in lookups:
              if alias not in data:
                  data[alias] = {}
              if driver not in data[alias]:
                  data[alias][driver] = {}
          return data
docs: Return a mapping of all configured profiles