code: def test_sync_spell_run(
      user, mock_run, relay_server, backend_interface
  ):
      with unittest.mock.patch.dict(
          "os.environ", SPELL_RUN_URL="https://spell.run/foo"
      ):
          with relay_server() as relay:
              run = mock_run(use_magic_mock=True)
              with backend_interface(run):
                  pass
      assert (
          relay.context.config[run.id]["_wandb"]["value"]["spell_url"]
          == "https://spell.run/foo"
      )
  
imports: import json
  import os
  import shutil
  import threading
  import time
  import unittest.mock
  import pytest
  import wandb
  from wandb.errors import CommError
  from wandb.proto import wandb_internal_pb2
  from wandb.sdk.interface.interface import InterfaceBase
  from wandb.sdk.lib import filesystem
label_desc: Use image node_id 25 for calling a global function with example usage: test_sync_spell_run(user, mock_run, relay_server, backend_interface) without return types