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._build_model()
  
file_path: graph4nlp/examples/pytorch/math_word_problem/mawps/src/inference.py
imports: import random
  import warnings
  import numpy
  import torch
  from graph4nlp.pytorch.datasets.mawps import tokenize_mawps
  from graph4nlp.pytorch.inference_wrapper.generator_inference_wrapper_for_tree import GeneratorInferenceWrapper
  from graph4nlp.pytorch.models.graph2tree import Graph2Tree
  from config import get_args
label_desc: Use image node_id 1 to create a new Mawps object  with example: obj = Mawps(opt)