<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_typ(self, typ):
 """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 """

        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)