code: def setUp(self):
      config = get_test_mlp_task_config()
      invalid_config = copy.deepcopy(config)
      invalid_config["name"] = "invalid_task"
      sync_bn_config = copy.deepcopy(config)
      sync_bn_config["batch_norm_sync_mode"] = "pytorch"
      self.config_files = {}
      for config_key, config in [
          ("config", config),
          ("invalid_config", invalid_config),
          ("sync_bn_config", sync_bn_config),
      ]:
          with tempfile.NamedTemporaryFile(mode="w", delete=False) as f:
              json.dump(config, f)
              f.flush()
              self.config_files[config_key] = f.name
      self.path = Path(__file__).parent.absolute()
  
file_path: ClassyVision/test/trainer_distributed_trainer_test.py
imports: import copy
  import json
  import os
  import subprocess
  import tempfile
  import unittest
  from pathlib import Path
  import torch
  from test.generic.config_utils import get_distributed_launch_cmd, get_test_mlp_task_config
label_desc: Use image node_id 1 for calling the TestDistributedTrainer obj's underlying member method code with example usage: obj.setUp() without return types