code: def parse(pem_str):
      # type: (bytes) -> List[AbstractPEMObject]
      
      return [
          _PEM_TO_CLASS[match.group(1)](match.group(0))
          for match in _PEM_RE.finditer(pem_str)
      ]
docs: Extract PEM objects from *pem_str*.
  
      :param pem_str: String to parse.
      :type pem_str: bytes
      :return: list of :ref:`pem-objects`