code: def entity_type_to_remote(value):
          
          if value in DiasporaRetraction.mapped.values():
              values = list(DiasporaRetraction.mapped.values())
              index = values.index(value)
              return list(DiasporaRetraction.mapped.keys())[index]
          return value
docs: Convert entity type between our Entity names and Diaspora names.