code: def test_whitespace_regex_separator(all_parsers, data, expected):
      # see gh-6607
      parser = all_parsers
      if parser.engine == "pyarrow":
          msg = "the 'pyarrow' engine does not support regex separators"
          with pytest.raises(ValueError, match=msg):
              parser.read_csv(StringIO(data), sep=r"\s+")
          return
  
      result = parser.read_csv(StringIO(data), sep=r"\s+")
      tm.assert_frame_equal(result, expected)
  
imports: from datetime import datetime
  from inspect import signature
  from io import StringIO
  import os
  from pathlib import Path
  import sys
  import numpy
  import pytest
  from pandas.errors import EmptyDataError, ParserError, ParserWarning
  from pandas import DataFrame, Index, Timestamp, compat
  import pandas._testing
  from pandas.io.parsers import TextFileReader
  from pandas.io.parsers.c_parser_wrapper import CParserWrapper
label_desc: Use image node_id 24 for calling a global function with example usage: test_whitespace_regex_separator(all_parsers, data, expected) without return types