code: def _validate_header_arg(header):
      if isinstance(header, bool):
          raise TypeError(
              "Passing a bool to header is invalid. "
              "Use header=None for no header or "
              "header=int or list-like of ints to specify "
              "the row(s) making up the column names"
          )
  
imports: import codecs
  from contextlib import closing, contextmanager
  import csv
  import mmap
  import os
  import zipfile
  import pandas.compat
  from pandas.compat import BytesIO, StringIO, string_types, text_type
  from pandas.errors import AbstractMethodError, DtypeWarning, EmptyDataError, ParserError, ParserWarning
  from pandas.core.dtypes.common import is_file_like, is_number
  from pandas.io.formats.printing import pprint_thing
label_desc: Use image node_id 3 for calling a global function with example usage: _validate_header_arg(header) without return types