code: def test_sync_config_file(self):
      self.add_master()
      self.add_worker(n_cpu=1)
  
      random_file = "random.npy"
      random_array = np.random.randn(3, 5)
      np.save(random_file, random_array)
      random_sum = random_array.sum()
  
      with open("config.json", "w") as f:
          config_file = {"test": 1000}
          json.dump(config_file, f)
  
      parl.connect(
          "localhost:{}".format(self.port),
          ["random.npy", "config.json"],
      )
      actor = Actor("random.npy", "config.json")
      time.sleep(5)
      os.remove("./random.npy")
      os.remove("./config.json")
      remote_sum = actor.random_sum()
      self.assertEqual(remote_sum, random_sum)
      time.sleep(10)
  
      remote_config = actor.read_config()
      self.assertEqual(config_file["test"], remote_config)
  
      del actor
  
file_path: PARL/parl/remote/tests/sync_config_file_test.py
imports: import unittest
  import parl
  import os
  import time
  import threading
  import sys
  import numpy
  import json
  from parl.utils import get_free_tcp_port
  from parl.utils.test_utils import XparlTestCase
label_desc: Use image node_id 1 for calling the TestConfigfile obj's underlying member method code with example usage: obj.test_sync_config_file() without return types