code: def _validate_unarmor(self, certs, var_name):
          
  
          output = []
          for cert in certs:
              if isinstance(cert, x509.Certificate):
                  output.append(cert)
              else:
                  if not isinstance(cert, byte_cls):
                      raise TypeError(pretty_message(
                          '''
                          %s must contain only byte strings or
                          asn1crypto.x509.Certificate objects, not %s
                          ''',
                          var_name,
                          type_name(cert)
                      ))
                  if pem.detect(cert):
                      _, _, cert = pem.unarmor(cert)
                  output.append(x509.Certificate.load(cert))
          return output
docs: Takes a list of byte strings or asn1crypto.x509.Certificates objects,
          validates and loads them while unarmoring any PEM-encoded contents
  
          :param certs:
              A list of byte strings or asn1crypto.x509.Certificate objects
  
          :param var_name:
              A unicode variable name to use in any TypeError exceptions
  
          :return:
              A list of asn1crypto.x509.Certificate objects