code: def __init__(
      self,
      environment,
      worker_cache_mem=None,
      spill_dirs=None,
      **kwargs,
  ):
      kwargs["depends"] = MarsSupervisorConfig.service_name
      super().__init__(environment, **kwargs)
  
      if worker_cache_mem:
          self.add_env("MARS_CACHE_MEM_SIZE", worker_cache_mem)
  
      if spill_dirs:
          self.add_env(
              "MARS_SPILL_DIRS",
              spill_dirs
              if isinstance(spill_dirs, str)
              else ":".join(spill_dirs),
          )
  
imports: import os
  import textwrap
  from urllib.parse import urlparse
  from ...utils import parse_readable_size
label_desc: Use image node_id 1 to create a new MarsWorkerConfig object from inherited base classes: MarsServiceConfig with example: obj = MarsWorkerConfig(environment, worker_cache_mem, spill_dirs)