code: def test_resume_error_never(wandb_init, mock_run, backend_interface):
      # seed server with a run
      # TODO: make a fixture for this
      run = wandb_init()
      run.log(dict(a=1), step=15)
      run.finish()
  
      resume_run = mock_run(
          use_magic_mock=True,
          settings={
              "resume": "never",
              "project": run.project,
              "run_id": run.id,
              "entity": run.entity,
          },
      )
  
      with backend_interface(
          resume_run, initial_run=False
      ) as interface:
          handle = interface.deliver_run(resume_run)
          result = handle.wait(timeout=5)
          run_result = result.run_result
          assert run_result.HasField("error")
          assert run_result.error.code == pb.ErrorInfo.ErrorCode.USAGE
  
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 23 for calling a global function with example usage: test_resume_error_never(wandb_init, mock_run, backend_interface) without return types