class_docstr: Class to parse an XML string into a CIFTI-2 header object
class_docstr_tok: ["Class","to","parse","an","XML","string","into","a","CIFTI-2","header","object"]
code: def __init__(self, encoding=None, buffer_size=3500000, verbose=0):
      super().__init__(
          encoding=encoding, buffer_size=buffer_size, verbose=verbose
      )
      self.fsm_state = []
      self.struct_state = []
  
      # where to write CDATA:
      self.write_to = None
      self.header = None
  
      # Collecting char buffer fragments
      self._char_blocks = None
  
imports: from io import BytesIO
  import numpy
  from packaging.version import Version, parse
  from ..None import xmlutils
  from ..batteryrunners import Report
  from ..nifti1 import Nifti1Extension, extension_codes, intent_codes
  from ..nifti2 import Nifti2Header, Nifti2Image
  from ..spatialimages import HeaderDataError
  from .cifti2 import CIFTI_BRAIN_STRUCTURES, CIFTI_MODEL_TYPES, Cifti2BrainModel, Cifti2Header, Cifti2HeaderError, Cifti2Label, Cifti2LabelTable, Cifti2Matrix, Cifti2MatrixIndicesMap, Cifti2MetaData, Cifti2NamedMap, Cifti2Parcel, Cifti2Surface, Cifti2TransformationMatrixVoxelIndicesIJKtoXYZ, Cifti2VertexIndices, Cifti2Vertices, Cifti2Volume, Cifti2VoxelIndicesIJK, _underscore
label_desc: Use image node_id 1 to create a new Cifti2Parser object from inherited base classes: xml with example: obj = Cifti2Parser(encoding, buffer_size, verbose)