code: def test_parse_third_party_modules():
      config = {
          "third_party_modules": {
              "supervisor": ["supervisor.module"],
              "worker": ["worker.module"],
          }
      }
      env = {"MARS_LOAD_MODULES": "extra.module"}
  
      parser = argparse.ArgumentParser(description="TestService")
      app = WorkerCommandRunner()
      app.config_args(parser)
      args = app.parse_args(
          parser,
          [
              "-c",
              json.dumps(config),
              "-p",
              "10324",
              "-s",
              "sv1,sv2",
              "--load-modules",
              "load.module",
          ],
          env,
      )
      assert args.load_modules == (
          "load.module",
          "worker.module",
          "extra.module",
      )
  
      parser = argparse.ArgumentParser(description="TestService")
      app = SupervisorCommandRunner()
      app.config_args(parser)
      args = app.parse_args(
          parser,
          [
              "-c",
              json.dumps(config),
              "-p",
              "10324",
              "-s",
              "sv1,sv2",
              "--load-modules",
              "load.module",
          ],
          env,
      )
      assert args.load_modules == (
          "load.module",
          "supervisor.module",
          "extra.module",
      )
  
imports: import argparse
  import asyncio
  import glob
  import json
  import logging
  import os
  import subprocess
  import sys
  import tempfile
  import time
  from concurrent import futures
  from typing import List
  import numpy
  import psutil
  import pytest
  from ....None import tensor
  from ....lib.aio import new_isolation, get_isolation, stop_isolation
  from ....services import NodeRole
  from ....services.cluster import ClusterAPI
  from ....session import new_session
  from ....tests import flaky
  from ....utils import get_next_port
  from ..cmdline import OscarCommandRunner
  from ..worker import WorkerCommandRunner
  from ..supervisor import SupervisorCommandRunner
label_desc: Use image node_id 8 for calling a global function with example usage: test_parse_third_party_modules() without return types