class_docstr: The box wrapping a space, can be passed to later procedure or trainer
  
  Parameters
  ----------
  space_model : BaseSpace
      The space which should be wrapped
  device : str or torch.device
      The device to place the model
docstr: To fix self._model with a selection
  
  Parameters
  ----------
  selection : dict
      A seletion indicating the choices of mutables
docstr_tok: ["To","fix","self._model","with","a","selection","Parameters","--","--","--","--","--","selection",":","dict","A","seletion","indicating","the","choices","of","mutables"]
code: def fix(self, selection):
      """
      To fix self._model with a selection
  
      Parameters
      ----------
      selection : dict
          A seletion indicating the choices of mutables
      """
      self.selection = selection
      self._model.instantiate()
      apply_fixed_architecture(self._model, selection, verbose=False)
      return self
  
imports: from abc import abstractmethod
  import torch.nn
  from nni.nas.pytorch import mutables
  from nni.nas.pytorch.fixed import FixedArchitecture
  import json
  from copy import deepcopy
  import torch
  from ...model import BaseAutoModel
  from ....utils import get_logger
  from ..utils import get_hardware_aware_metric
label_desc: Use image node_id 3 for calling the BoxModel obj's underlying member method code with example usage: obj.fix(selection) and returns: self