code: def test_confusion_matrix_with_empty_labels():
      # Given
      input_solution = ["cat", "ant", "cat", "cat", "ant", "bird"]
      input_prediction = ["ant", "ant", "cat", "cat", "ant", "cat"]
      labels = []
  
      # When-Then
      with pytest.raises(ValueError):
          observed_output = confusion_matrix(
              input_solution, input_prediction, labels=labels
          )
  
imports: import numpy
  import pytest
  import sklearn
  from autogluon.core.metrics import confusion_matrix, log_loss, quadratic_kappa, roc_auc
  from autogluon.core.metrics.softclass_metrics import soft_log_loss
label_desc: Use image node_id 7 for calling a global function with example usage: test_confusion_matrix_with_empty_labels() without return types