code: def _build_model(self):
      self.model = Graph2Tree.load_checkpoint(
          self.opt["checkpoint_save_path"], "best.pt"
      ).to(self.device)
  
      self.inference_tool = GeneratorInferenceWrapper(
          cfg=self.opt,
          model=self.model,
          beam_size=2,
          lower_case=True,
          tokenizer=tokenize_jobs,
      )
  
file_path: graph4nlp/examples/pytorch/semantic_parsing/graph2tree/jobs/src/inference.py
imports: import random
  import warnings
  import numpy
  import torch
  from graph4nlp.pytorch.datasets.jobs import tokenize_jobs
  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 2 for calling the Jobs obj's underlying member method code with example usage: obj._build_model() without return types