code: def controller(
      sweep_id_or_config: Optional[Union[str, Dict]] = None,
      entity: Optional[str] = None,
      project: Optional[str] = None,
  ):
      """Public sweep controller constructor.
  
      Usage:
          ```python
          import wandb
  
          tuner = wandb.controller(...)
          print(tuner.sweep_config)
          print(tuner.sweep_id)
          tuner.configure_search(...)
          tuner.configure_stopping(...)
          ```
  
      """
      from ..wandb_controller import _WandbController
  
      c = _WandbController(
          sweep_id_or_config=sweep_id_or_config,
          entity=entity,
          project=project,
      )
      return c
  
file_path: wandb/wandb/sdk/wandb_sweep.py
imports: import urllib.parse
  from typing import Callable, Dict, Optional, Union
  import wandb
  from wandb import env
  from wandb.apis import InternalApi
  from wandb.sdk.launch.sweeps.utils import handle_sweep_config_violations
  from .None import wandb_login
label_desc: Use image node_id 3 for calling a global function with example usage: controller(sweep_id_or_config, entity, project) and returns: c