class_docstr: Read SAS files in SAS7BDAT format.
  
  Parameters
  ----------
  path_or_buf : path name or buffer
      Name of SAS file or file-like object pointing to SAS file
      contents.
  index : column identifier, defaults to None
      Column to use as index.
  convert_dates : bool, defaults to True
      Attempt to convert dates to Pandas datetime values.  Note that
      some rarely used SAS date formats may be unsupported.
  blank_missing : bool, defaults to True
      Convert empty strings to missing values (SAS uses blanks to
      indicate missing character variables).
  chunksize : int, defaults to None
      Return SAS7BDATReader object for iterations, returns chunks
      with given number of lines.
  encoding : str, 'infer', defaults to None
      String encoding acc. to Python standard encodings,
      encoding='infer' tries to detect the encoding from the file header,
      encoding=None will leave the data in binary format.
  convert_text : bool, defaults to True
      If False, text variables are left as raw bytes.
  convert_header_text : bool, defaults to True
      If False, header text, including column names, are left as raw
      bytes.
class_docstr_tok: ["Read","SAS","files","in","SAS7BDAT","format",".","Parameters","--","--","--","--","--","path_or_buf",":","path","name","or","buffer","Name","of","SAS","file","or","file-like","object","pointing","to","SAS","file","contents",".","index",":","column","identifier",",","defaults","to","None","Column","to","use","as","index",".","convert_dates",":","bool",",","defaults","to","True","Attempt","to","convert","dates","to","Pandas","datetime","values",".","Note","that","some","rarely","used","SAS","date","formats","may","be","unsupported",".","blank_missing",":","bool",",","defaults","to","True","Convert","empty","strings","to","missing","values","(","SAS","uses","blanks","to","indicate","missing","character","variables",")",".","chunksize",":","int",",","defaults","to","None","Return","SAS7BDATReader","object","for","iterations",",","returns","chunks","with","given","number","of","lines",".","encoding",":","str",",","'infer","'",",","defaults","to","None","String","encoding","acc",".","to","Python","standard","encodings",",","encoding='infer","'","tries","to","detect","the","encoding","from","the","file","header",",","encoding=None","will","leave","the","data","in","binary","format",".","convert_text",":","bool",",","defaults","to","True","If","False",",","text","variables","are","left","as","raw","bytes",".","convert_header_text",":","bool",",","defaults","to","True","If","False",",","header","text",",","including","column","names",",","are","left","as","raw","bytes","."]
code: def _convert_header_text(self, b: bytes) -> str | bytes:
      if self.convert_header_text:
          return self._decode_string(b)
      else:
          return b
  
imports: from __future__ import annotations
  from collections import abc
  from datetime import datetime, timedelta
  import sys
  from typing import TYPE_CHECKING
  import numpy
  from pandas._libs.byteswap import read_double_with_byteswap, read_float_with_byteswap, read_uint16_with_byteswap, read_uint32_with_byteswap, read_uint64_with_byteswap
  from pandas._libs.sas import Parser, get_subheader_index
  from pandas._libs.tslibs.conversion import cast_from_unit_vectorized
  from pandas.errors import EmptyDataError
  import pandas
  from pandas import DataFrame, Timestamp, isna
  from pandas.io.common import get_handle
  import pandas.io.sas.sas_constants
  from pandas.io.sas.sasreader import ReaderBase
label_desc: Use image node_id 28 for calling the SAS7BDATReader obj's underlying member method code with example usage: obj._convert_header_text(b) and returns: self, b