docs: def decodes(self, s: str) -> BioCCollection:
          """
          Deserialize ``s`` to a BioC collection object.
  
          Args:
              s: a "str" instance containing a BioC collection
  
          Returns:
              an object of BioCollection
          """
          tree = etree.parse(io.BytesIO(bytes(s, encoding='UTF-8')))
          collection = self.__parse_collection(tree.getroot())
          collection.encoding = tree.docinfo.encoding
          collection.standalone = tree.docinfo.standalone
          collection.version = tree.docinfo.xml_version
          return collection