code: def test_mapping():
      test_cases = [
          (l, expected)
          for l, expected in zip(labels, [[0, 0], [1, 1, 1], [0]])
      ]
      for l, expected in test_cases:
          mapped = mapping(l, maps)
          assert mapped == expected
  
imports: from cleanlab.internal.token_classification_utils import get_sentence, filter_sentence, process_token, mapping, merge_probs, color_sentence, _replace_sentence
  from cleanlab.token_classification.filter import find_label_issues
  from cleanlab.token_classification.rank import get_label_quality_scores, issues_from_scores, _softmin_sentence_score
  from cleanlab.token_classification.summary import display_issues, common_label_issues, filter_by_token
  import numpy
  import pandas
  import pytest
  import warnings
label_desc: Use image node_id 4 for calling a global function with example usage: test_mapping() without return types