code: def test_attach_same_process(wandb_init, test_settings):
      with pytest.raises(RuntimeError) as excinfo:
          run = wandb_init(settings=test_settings())
          new_run = pickle.loads(pickle.dumps(run))
          new_run.log({"a": 2})
      run.finish()
      assert "attach in the same process is not supported" in str(
          excinfo.value
      )
  
imports: import json
  import os
  import pickle
  import sys
  import numpy
  import pytest
  import wandb
  from wandb import wandb_sdk
  from wandb.errors import UsageError
label_desc: Use image node_id 9 for calling a global function with example usage: test_attach_same_process(wandb_init, test_settings) without return types