code: def write_entity(self, entity):
          
          db, db_object_id = self._split_prefix(entity)
          taxon = normalize_taxon(entity["taxon"]["id"])
  
          vals = [
              db,
              db_object_id,
              entity.get('label'),
              entity.get('full_name'),
              entity.get('synonyms'),
              entity.get('type'),
              taxon,
              entity.get('parents'),
              entity.get('xrefs'),
              entity.get('properties')
          ]
  
          self._write_row(vals)
docs: Write a single entity to a line in the output file