code: def verify_signature(message, signature, certs):
      
      if isinstance(certs, (six.text_type, six.binary_type)):
          certs = [certs]
  
      for cert in certs:
          verifier = rsa.RSAVerifier.from_string(cert)
          if verifier.verify(message, signature):
              return True
      return False
docs: Verify an RSA cryptographic signature.
  
      Checks that the provided ``signature`` was generated from ``bytes`` using
      the private key associated with the ``cert``.
  
      Args:
          message (Union[str, bytes]): The plaintext message.
          signature (Union[str, bytes]): The cryptographic signature to check.
          certs (Union[Sequence, str, bytes]): The certificate or certificates
              to use to check the signature.
  
      Returns:
          bool: True if the signature is valid, otherwise False.