code: def test_color_sentence(
      monkeypatch: pytest.MonkeyPatch, sentence, word, expected
  ):
      monkeypatch.setattr("sys.stdout.isatty", lambda: True)
  
      colored = color_sentence(sentence, word)
      assert colored == 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 7 for calling a global function with example usage: test_color_sentence(monkeypatch, sentence, word, expected) without return types