code: def test_multilabel_inputs():
      ck = CohenKappa()
  
      with pytest.raises(
          ValueError, match=r"multilabel-indicator is not supported"
      ):
          ck.reset()
          ck.update(
              (
                  torch.randint(0, 2, size=(10, 4)).long(),
                  torch.randint(0, 2, size=(10, 4)).long(),
              )
          )
          ck.compute()
  
      with pytest.raises(
          ValueError, match=r"multilabel-indicator is not supported"
      ):
          ck.reset()
          ck.update(
              (
                  torch.randint(0, 2, size=(10, 6)).long(),
                  torch.randint(0, 2, size=(10, 6)).long(),
              )
          )
          ck.compute()
  
      with pytest.raises(
          ValueError, match=r"multilabel-indicator is not supported"
      ):
          ck.reset()
          ck.update(
              (
                  torch.randint(0, 2, size=(10, 8)).long(),
                  torch.randint(0, 2, size=(10, 8)).long(),
              )
          )
          ck.compute()
  
imports: import os
  from unittest.mock import patch
  import pytest
  import sklearn
  import torch
  from sklearn.metrics import cohen_kappa_score
  import ignite.distributed
  from ignite.contrib.metrics import CohenKappa
  from ignite.engine import Engine
  from ignite.exceptions import NotComputableError
label_desc: Use image node_id 9 for calling a global function with example usage: test_multilabel_inputs() without return types