code: def _build_dataloader(self):
      para_dic = {
          "root_dir": self.data_dir,
          "word_emb_size": self.opt["graph_construction_args"][
              "node_embedding"
          ]["input_size"],
          "topology_subdir": self.opt["graph_construction_args"][
              "graph_construction_share"
          ]["topology_subdir"],
          "edge_strategy": self.opt["graph_construction_args"][
              "graph_construction_private"
          ]["edge_strategy"],
          "graph_name": self.opt["graph_construction_args"][
              "graph_construction_share"
          ]["graph_name"],
          "share_vocab": self.use_share_vocab,
          "enc_emb_size": self.opt["graph_construction_args"][
              "node_embedding"
          ]["input_size"],
          "dec_emb_size": self.opt["decoder_args"]["rnn_decoder_share"][
              "input_size"
          ],
          "dynamic_init_graph_name": self.opt[
              "graph_construction_args"
          ]["graph_construction_private"].get(
              "dynamic_init_graph_name", None
          ),
          "min_word_vocab_freq": self.opt["min_freq"],
          "pretrained_word_emb_name": self.opt[
              "pretrained_word_emb_name"
          ],
          "pretrained_word_emb_url": self.opt[
              "pretrained_word_emb_url"
          ],
          "pretrained_word_emb_cache_dir": self.opt[
              "pretrained_word_emb_cache_dir"
          ],
          "for_inference": 1,
          "reused_vocab_model": self.model.vocab_model,
      }
  
      # for inference
      inference_dataset = JobsDatasetForTree(**para_dic)
  
      self.inference_data_loader = DataLoader(
          inference_dataset.test,
          batch_size=1,
          shuffle=False,
          num_workers=0,
          collate_fn=inference_dataset.collate_fn,
      )
  
      self.vocab_model = self.model.vocab_model
      self.src_vocab = self.vocab_model.in_word_vocab
      self.tgt_vocab = self.vocab_model.out_word_vocab
      self.share_vocab = (
          self.vocab_model.share_vocab if self.use_share_vocab else None
      )
  
file_path: graph4nlp/examples/pytorch/semantic_parsing/graph2tree/jobs/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.jobs import JobsDatasetForTree
  from graph4nlp.pytorch.models.graph2tree import Graph2Tree
  from evaluation import ExactMatch
label_desc: Use image node_id 2 for calling the Jobs obj's underlying member method code with example usage: obj._build_dataloader() without return types