code: def set_type(self):
          
          if self.device_info['type'] == 'Router':
              self.node['type'] = self.device_info['model'].upper()
          else:
              self.node['type'] = self.device_info['type']
docs: Set the node type