code: def test_comment(all_parsers, na_values):
      parser = all_parsers
      data = """A,B,C
  1,2.,4.#hello world
  5.,NaN,10.0
  """
      expected = DataFrame(
          [[1.0, 2.0, 4.0], [5.0, np.nan, 10.0]],
          columns=["A", "B", "C"],
      )
      if parser.engine == "pyarrow":
          msg = "The 'comment' option is not supported with the 'pyarrow' engine"
          with pytest.raises(ValueError, match=msg):
              parser.read_csv(
                  StringIO(data), comment="#", na_values=na_values
              )
          return
      result = parser.read_csv(
          StringIO(data), comment="#", na_values=na_values
      )
      tm.assert_frame_equal(result, expected)
  
file_path: pandas/pandas/tests/io/parser/test_comment.py
imports: from io import StringIO
  import numpy
  import pytest
  from pandas import DataFrame
  import pandas._testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_comment(all_parsers, na_values) without return types