code: def test_parse_sweep_id():
      parts = {"name": "test/test/test"}
      utils.parse_sweep_id(parts)
      assert parts == {
          "name": "test",
          "entity": "test",
          "project": "test",
      }
  
      parts = {"name": 1}
      assert utils.parse_sweep_id(parts) == "Expected string sweep_id"
  
      parts = {"name": "test/test"}
      utils.parse_sweep_id(parts)
      assert parts == {
          "name": "test",
          "entity": None,
          "project": "test",
      }
  
      parts = {"name": "test/test/test/test"}
      out = utils.parse_sweep_id(parts)
      assert (
          out
          == "Expected sweep_id in form of sweep, project/sweep, or entity/project/sweep"
      )
  
file_path: wandb/tests/pytest_tests/system_tests/test_sweep/test_sweep_utils.py
imports: import json
  import pytest
  import yaml
  from wandb.sdk.launch.sweeps import utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_parse_sweep_id() without return types