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