class_docstr: The base class for class BaseModel,
  designed to implement some basic functionality of BaseModel.
  --  Designed by ZiXin Sun
class_docstr_tok: ["The","base","class","for","class","BaseModel",",","designed","to","implement","some","basic","functionality","of","BaseModel",".","--","Designed","by","ZiXin","Sun"]
code: def __init__(
      self,
      model: _typing.Optional[torch.nn.Module] = None,
      initialize: bool = False,
      device: _typing.Union[str, torch.device] = ...,
  ):
      if type(initialize) != bool:
          raise TypeError
      super(_BaseBaseModel, self).__init__()
      self.__device: torch.device = self.__formulate_device(device)
      self._model: _typing.Optional[torch.nn.Module] = model
      self.__is_initialized: bool = False
      if initialize:
          self.initialize()
  
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 9 to create a new _BaseBaseModel object  with example: obj = _BaseBaseModel(model, initialize, device)