code: def test_header_names_backward_compat(
      all_parsers, data, header, request
  ):
      # see gh-2539
      parser = all_parsers
  
      if parser.engine == "pyarrow" and header is not None:
          mark = pytest.mark.xfail(
              reason="DataFrame.columns are different"
          )
          request.applymarker(mark)
  
      expected = parser.read_csv(
          StringIO("1,2,3\n4,5,6"), names=["a", "b", "c"]
      )
  
      result = parser.read_csv(
          StringIO(data), names=["a", "b", "c"], header=header
      )
      tm.assert_frame_equal(result, expected)
  
imports: from collections import namedtuple
  from io import StringIO
  import numpy
  import pytest
  from pandas.errors import ParserError
  from pandas import DataFrame, Index, MultiIndex
  import pandas._testing
label_desc: Use image node_id 16 for calling a global function with example usage: test_header_names_backward_compat(all_parsers, data, header, request) without return types