code: def test_worker_config():
      config = MarsWorkerConfig("/path/to/packed.tar.gz").build()
      assert "mars.deploy.yarn.worker" in config["script"]
      assert config["depends"] == [MarsSupervisorConfig.service_name]
  
      config = MarsWorkerConfig(
          "/path/to/packed.tar.gz",
          worker_cache_mem="10g",
          spill_dirs=["/spill/dir1", "/spill/dir2"],
      ).build()
      config_envs = config["env"]
      assert config_envs["MARS_CACHE_MEM_SIZE"] == "10g"
      assert config_envs["MARS_SPILL_DIRS"].split(":") == [
          "/spill/dir1",
          "/spill/dir2",
      ]
  
imports: import os
  from ....None import __file__
  from ..config import SecurityConfig, AppFileConfig, AppMasterConfig, MarsApplicationConfig, MarsSupervisorConfig, MarsWorkerConfig
label_desc: Use image node_id 3 for calling a global function with example usage: test_worker_config() without return types