code: def test_detect_multilabel():
      with pytest.raises(UserWarning):
          detect_multilabel({"label1": "this will raise UserWarning"})
  
      assert detect_multilabel([1, 2, 3, 4])
      assert not detect_multilabel([0, 1, 1, 0])
  
imports: from unittest.mock import MagicMock, Mock, patch
  import numpy
  import pytest
  from chitra.visualization.metrics import cm_accuracy, detect_multilabel, plot_confusion_matrix
label_desc: Use image node_id 1 for calling a global function with example usage: test_detect_multilabel() without return types