class_docstr: The upcoming root base class for Model, i.e. BaseModel
  --  Designed by ZiXin Sun
class_docstr_tok: ["The","upcoming","root","base","class","for","Model",",","i.e",".","BaseModel","--","Designed","by","ZiXin","Sun"]
code: def to(self, device: torch.device):
      self.device = device
      if self.model is not None and isinstance(
          self.model, torch.nn.Module
      ):
          self.model.to(self.device)
      return super().to(device)
  
imports: import copy
  import logging
  import typing
  import torch
  import torch.nn.functional
  from copy import deepcopy
  from autogl.module.hpo.auto_module import AutoModule
label_desc: Use image node_id 2 for calling the _BaseModel obj's underlying member method code with example usage: obj.to(device) and returns: super