code: def test__check_type():
      acc = Accuracy()
  
      with pytest.raises(RuntimeError, match=r"Invalid shapes of y"):
          acc._check_type((torch.rand([1, 1, 1]), torch.rand([1])))
  
imports: import os
  import pytest
  import torch
  from packaging.version import Version
  from sklearn.metrics import accuracy_score
  import ignite.distributed
  from ignite.engine import Engine
  from ignite.exceptions import NotComputableError
  from ignite.metrics import Accuracy
label_desc: Use image node_id 3 for calling a global function with example usage: test__check_type() without return types