code: def test_validate_misaligned_spans():
      span_utils = SpanUtils("test this.", ["test", "this", "."])
      with pytest.raises(
          ValueError,
          match="Following entity spans are not aligned with provided tokenization\n"
          r"Spans:\n\('mock', 0, 5\) - 'test '\n"
          r"Tokens:\n\['test', 'this', '.'\]",
      ):
          span_utils.validate([("mock", 0, 5)])
  
file_path: argilla/tests/unit/utils/test_span_utils.py
imports: import pytest
  from argilla.utils.span_utils import SpanUtils
label_desc: Use image node_id 5 for calling a global function with example usage: test_validate_misaligned_spans() without return types