code: def test_run_from_dict():
      run = sweeps.SweepRun(
          **{
              "name": "test",
              "state": "running",
              "config": {},
              "stopped": False,
              "shouldStop": False,
              "sampledHistory": [{}],
              "summaryMetrics": {},
          }
      )
      assert run.name == "test"
      assert run.state == "running"
      assert run.config == {}
      assert run.summary_metrics == {}
  
file_path: wandb/tests/pytest_tests/unit_tests_old/test_launch/test_wandb_controller.py
imports: import platform
  import sys
  import pytest
  import sweeps
  import wandb
label_desc: Use image node_id 1 for calling a global function with example usage: test_run_from_dict() without return types