code: def run(self) -> None:
      parser = argparse.ArgumentParser()
      parser.add_argument("--sweep_name", type=str)
      parser.add_argument("--num_trials", type=int)
      hparams = parser.parse_args()
  
      config = SweepConfig(
          sweep_name=hparams.sweep_name, num_trials=hparams.num_trials
      )
      response = self.invoke_handler(config=config)
      assert response is True
  
imports: import argparse
  import sys
  from multiprocessing import Process
  from time import sleep
  from unittest.mock import MagicMock
  import pytest
  import requests
  from lightning.app import LightningApp, LightningFlow
  from lightning.app.cli.commands.app_commands import _run_app_command
  from lightning.app.cli.connect.app import connect_app, disconnect_app
  from lightning.app.core.constants import APP_SERVER_PORT
  from lightning.app.runners import MultiProcessRuntime
  from lightning.app.testing.helpers import _RunIf
  from lightning.app.utilities.commands.base import ClientCommand, _download_command, _validate_client_command
  from lightning.app.utilities.state import AppState
  from pydantic import BaseModel
label_desc: Use image node_id 1 for calling the SweepCommand obj's underlying member method code with example usage: obj.run() without return types