code: def resource_type(self, rt):
          
          if not isinstance(rt, str):
              rt = str(rt)
          self._attributes["rt"] = rt
docs: Set the CoRE Link Format rt attribute of the resource.
  
          :param rt: the CoRE Link Format rt attribute