code: def test_agent_create_command_args_bad_command():
      mock_command_no_args = {"foo": None}
      with pytest.raises(ValueError):
          _ = create_sweep_command_args(mock_command_no_args)
      mock_command_missing_value = {"args": {"a": {"foo": True}}}
      with pytest.raises(ValueError):
          _ = create_sweep_command_args(mock_command_missing_value)
  
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 2 for calling a global function with example usage: test_agent_create_command_args_bad_command() without return types