code: def set_typ(self, typ):
          
          if typ not in self._refobjinter.types:
              raise ValueError("The given typ is not supported by RefobjInterface. Given %s, supported: %s" %
                               (typ, self._refobjinter.types.keys()))
          self._typ = typ
          self._typicon = self.get_refobjinter().get_typ_icon(typ)
docs: Set the type of the entity
  
          Make sure the type is registered in the :class:`RefobjInterface`.
  
          :param typ: the type of the entity
          :type typ: str
          :returns: None
          :rtype: None
          :raises: ValueError