code: def test_agent_create_command_args():
      mock_command = {
          "args": {
              "a": {"value": True},
              "b": {"value": False},
              "c": {"value": 1},
              "d": {"value": None},
          }
      }
  
      _return = create_sweep_command_args(mock_command)
      # test has all the required fields
      assert "args" in _return
      assert "args_no_hyphens" in _return
      assert "args_no_boolean_flags" in _return
      assert "args_json" in _return
      # test fields are correct
      assert _return["args"] == [
          "--a=True",
          "--b=False",
          "--c=1",
          "--d=None",
      ]
      assert _return["args_no_hyphens"] == [
          "a=True",
          "b=False",
          "c=1",
          "d=None",
      ]
      assert _return["args_no_boolean_flags"] == [
          "--a",
          "--c=1",
          "--d=None",
      ]
      assert _return["args_json"] == [
          '{"a": true, "b": false, "c": 1, "d": null}'
      ]
  
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 1 for calling a global function with example usage: test_agent_create_command_args() without return types