code: def test_bool_header_arg(header):
      # see gh-6114
      data = """\
  MyColumn
     a
     b
     a
     b"""
  
      msg = "Passing a bool to header is invalid"
      with pytest.raises(TypeError, match=msg):
          read_fwf(StringIO(data), header=header)
  
imports: from datetime import datetime
  from io import BytesIO, StringIO
  from pathlib import Path
  import numpy
  import pytest
  from pandas.errors import EmptyDataError
  import pandas
  from pandas import DataFrame, DatetimeIndex
  import pandas._testing
  from pandas.core.arrays import ArrowStringArray, StringArray
  from pandas.io.common import urlopen
  from pandas.io.parsers import read_csv, read_fwf
label_desc: Use image node_id 18 for calling a global function with example usage: test_bool_header_arg(header) without return types