code: def test_error_when_using_attributes_of_finished_run(
      mock_run, attribute, value
  ):
      run = mock_run(use_magic_mock=True)
      run.finish()
      assert run._is_finished
      with pytest.raises(wandb.errors.UsageError):
          if isinstance(value, list):
              setattr(getattr(run, attribute), *value)
          else:
              setattr(run, attribute, value)
  
imports: import copy
  import os
  import platform
  import unittest.mock
  import numpy
  import pytest
  import wandb
  import wandb.errors
  from wandb import wandb_sdk
label_desc: Use image node_id 21 for calling a global function with example usage: test_error_when_using_attributes_of_finished_run(mock_run, attribute, value) without return types