code: def __init__(self, opt=None):
      super(Mawps, self).__init__()
      self.opt = opt
  
      seed = self.opt["seed"]
      random.seed(seed)
      np.random.seed(seed)
      torch.manual_seed(seed)
  
      if self.opt["gpuid"] == -1:
          self.device = torch.device("cpu")
      else:
          self.device = torch.device(
              "cuda:{}".format(self.opt["gpuid"])
          )
  
      self.use_copy = self.opt["decoder_args"]["rnn_decoder_share"][
          "use_copy"
      ]
      self.use_share_vocab = self.opt["graph_construction_args"][
          "graph_construction_share"
      ]["share_vocab"]
      self.data_dir = self.opt["graph_construction_args"][
          "graph_construction_share"
      ]["root_dir"]
      self._build_model()
      self._build_dataloader()
      self._build_evaluation()
  
file_path: graph4nlp/examples/pytorch/math_word_problem/mawps/src/inference_advance.py
imports: import copy
  import random
  import time
  import warnings
  import numpy
  import torch
  from torch.utils.data import DataLoader
  from graph4nlp.pytorch.datasets.mawps import MawpsDatasetForTree
  from graph4nlp.pytorch.models.graph2tree import Graph2Tree
  from evaluation import SolutionMatch
label_desc: Use image node_id 1 to create a new Mawps object  with example: obj = Mawps(opt)