code: def test_exception_with_doc_type_pdf_and_clean_false():
      """
      Test to force clean=True when doc_type="pdf"
      """
      with pytest.raises(ValueError) as e:
          seg = pysbd.Segmenter(
              language="en", clean=False, doc_type="pdf"
          )
      assert str(e.value) == (
          "`doc_type='pdf'` should have `clean=True` & "
          "`char_span` should be False since original"
          "text will be modified."
      )
  
file_path: pySBD/tests/test_segmenter.py
imports: import pytest
  import pysbd
  from pysbd.utils import TextSpan
label_desc: Use image node_id 8 for calling a global function with example usage: test_exception_with_doc_type_pdf_and_clean_false() without return types