code: def test_agent_create_sweep_command():
      # Given no command, function should return default
      _command = create_sweep_command()
      assert _command == Agent.DEFAULT_SWEEP_COMMAND
  
      # Environment variable macros should be replaced in mock command
      _command = create_sweep_command(
          [
              "${env}",
              "${interpreter}",
              "--output_dir",
              "fake/path/${envvar:FOO_DIR}/${envvar:FOO_DIR}/${envvar:FOO_DIR_TWO}",
              "--foovar",
              "${envvar:FOO_VAR}",
          ]
      )
      assert _command == [
          "${env}",
          "${interpreter}",
          "--output_dir",
          "fake/path/foo_dir/foo_dir/foo_dir_two",
          "--foovar",
          "foo_var",
      ]
  
file_path: wandb/tests/pytest_tests/system_tests/test_sweep/test_wandb_agent.py
imports: import os
  from unittest import mock
  import pytest
  from wandb.sdk.launch.sweeps.utils import create_sweep_command, create_sweep_command_args
  from wandb.wandb_agent import Agent
label_desc: Use image node_id 3 for calling a global function with example usage: test_agent_create_sweep_command() without return types