code: def test_get_label_quality_scores_exceptions(
      method,
      downsample,
      batch_size,
      expected_exception,
      expected_message,
  ):
      args = {
          "labels": labels,
          "pred_probs": pred_probs,
          "method": method,
      }
      if downsample is not None:
          args["downsample"] = downsample
      if batch_size is not None:
          args["batch_size"] = batch_size
  
      with pytest.raises(expected_exception) as exc_info:
          get_label_quality_scores(**args)
  
      assert expected_message in str(exc_info.value)
  
imports: import numpy
  import random
  import pytest
  from unittest import mock
  import matplotlib.pyplot
  from pathlib import Path
  from cleanlab.internal.multilabel_scorer import softmin
  from cleanlab.internal.segmentation_utils import _check_input, _get_valid_optional_params, _get_summary_optional_params
  from cleanlab.segmentation.filter import find_label_issues
  from cleanlab.segmentation.rank import get_label_quality_scores, issues_from_scores, _get_label_quality_per_image
  from cleanlab.segmentation.summary import display_issues, common_label_issues, filter_by_class, _generate_colormap
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_label_quality_scores_exceptions(method, downsample, batch_size, expected_exception, expected_message) without return types