docstr: Args:
      state_shape (tuple[int]),
      history (int):
docstr_tok: ["Args",":","state_shape","(","tuple","[","int","]",")",",","history","(","int",")",":"]
code: def __init__(self, state_shape, history, method, num_actions):
      """
      Args:
          state_shape (tuple[int]),
          history (int):
      """
      self.state_shape = tuple(state_shape)
      self._stacked_state_shape = (-1,) + self.state_shape + (history,)
      self.history = history
      self.method = method
      self.num_actions = num_actions
  
file_path: tensorpack/examples/DeepQNetwork/DQNModel.py
imports: import abc
  from tensorpack import ModelDesc
  from tensorpack.compat import tfv1
  from tensorpack.tfutils import gradproc, optimizer, summary, varreplace
  from tensorpack.tfutils.scope_utils import auto_reuse_variable_scope
  from tensorpack.utils import logger
label_desc: Use image node_id 1 to create a new Model object from inherited base classes: ModelDesc with example: obj = Model(state_shape, history, method, num_actions)