code: def instantiate(
      self,
      hidden_dim: _typ.Optional[int] = None,
      layer_number: _typ.Optional[int] = None,
      input_dim: _typ.Optional[int] = None,
      output_dim: _typ.Optional[int] = None,
      ops: _typ.Tuple = None,
      dropout=None,
  ):
      super().instantiate()
      self.hidden_dim = hidden_dim or self.hidden_dim
      self.layer_number = layer_number or self.layer_number
      self.input_dim = input_dim or self.input_dim
      self.output_dim = output_dim or self.output_dim
      self.ops = ops or self.ops
      self.dropout = dropout or self.dropout
      for layer in range(self.layer_number):
          setattr(
              self,
              f"op_{layer}",
              self.setLayerChoice(
                  layer,
                  [
                      op(
                          self.input_dim
                          if layer == 0
                          else self.hidden_dim,
                          self.output_dim
                          if layer == self.layer_number - 1
                          else self.hidden_dim,
                      )
                      if isinstance(op, type)
                      else gnn_map(
                          op,
                          self.input_dim
                          if layer == 0
                          else self.hidden_dim,
                          self.output_dim
                          if layer == self.layer_number - 1
                          else self.hidden_dim,
                      )
                      for op in self.ops
                  ],
              ),
          )
      self._initialized = True
  
file_path: AutoGL/autogl/module/nas/space/single_path.py
imports: from autogl.module.nas.space.operation import gnn_map
  import typing
  import torch
  import torch.nn.functional
  from .None import register_nas_space
  from .base import apply_fixed_architecture
  from .base import BaseSpace
  from ...model import BaseAutoModel
  from ....utils import get_logger
  from ...model import AutoGCN
  from ..backend import *
  from ..utils import count_parameters, measure_latency
label_desc: Use image node_id 2 for calling the SinglePathNodeClassificationSpace obj's underlying member method code with example usage: obj.instantiate(hidden_dim, layer_number, input_dim, output_dim, ops, dropout) without return types