code: def setUp(self):
      setup_imports()
      torch.manual_seed(1234)
      config_path = os.path.join(
          get_mmf_root(),
          "..",
          "projects",
          "butd",
          "configs",
          "coco",
          "nucleus_sampling.yaml",
      )
      config_path = os.path.abspath(config_path)
      args = dummy_args(model="butd", dataset="coco")
      args.opts.append(f"config={config_path}")
      configuration = Configuration(args)
      configuration.config.datasets = "coco"
      configuration.config.model_config.butd.inference.params.sum_threshold = (
          0.5
      )
      configuration.freeze()
      self.config = configuration.config
      registry.register("config", self.config)
  
imports: import os
  import unittest
  import mmf.utils.text
  import numpy
  import torch
  from mmf.common.registry import registry
  from mmf.common.sample import Sample, SampleList
  from mmf.utils.configuration import Configuration
  from mmf.utils.env import setup_imports
  from mmf.utils.general import get_mmf_root
  from tests.test_utils import dummy_args
  from tests.utils.test_model import TestDecoderModel
label_desc: Use image node_id 1 for calling the TestUtilsText obj's underlying member method code with example usage: obj.setUp() without return types