code: def many_from_config(config):
          
          result = []
  
          # Try to get multiple credentials first
          credentials = config.get_section("credentials")
          if len(credentials) > 0:
              sections_names = credentials.get_section_names()
              for section in sections_names:
                  credential = credentials.get_section(section)
                  result.append(CredentialParams(credential))
          # Then try to get a single credential
          else:
              credential = config.get_section("credential")
              result.append(CredentialParams(credential))
  
          return result
docs: Retrieves all CredentialParams from configuration parameters
          from "credentials" section. If "credential" section is present instead,
          than it returns a list with only one CredentialParams.
  
          :param config: a configuration parameters to retrieve credentials
  
          :return: a list of retrieved CredentialParams