code: def test_get_run_state(test_settings):
      _api = internal.Api()
      res = _api.get_run_state("test", "test", "test")
      assert res == "running", "Test run must have state running"
  
imports: from unittest import mock
  import wandb
  from wandb.apis import internal
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_run_state(test_settings) without return types