code: def test_error_when_using_methods_of_finished_run(
      mock_run, method, args
  ):
      run = mock_run(use_magic_mock=True)
      run.finish()
      assert run._is_finished
      with pytest.raises(wandb.errors.UsageError):
          getattr(run, method)(*args)
  
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 20 for calling a global function with example usage: test_error_when_using_methods_of_finished_run(mock_run, method, args) without return types