docs: def encode_document(obj):
      """Encode a single document."""
      warnings.warn("deprecated. Please use bioc.biocxml.encoder.encode_document", DeprecationWarning)
      return bioc.biocxml.encoder.encode_document(obj)