code: def add_header(self, text: str):
      if not (text is None):
          if self.level == Constant.S1.value:
              self.report.detail.add_header_level_1(text=text)
          elif self.level == Constant.H1.value:
              self.report.detail.add_header_level_2(text=text)
          elif self.level == Constant.H2.value:
              self.report.detail.add_header_level_3(text=text)
          else:
              self.report.detail.add_paragraph(text=text)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import warnings
  import json
  from enum import Enum
  from importlib import import_module
  from pathlib import Path
  import numpy
  import pandas
  import yaml
  from jsonschema import validate
  from xai.exception import CompilerException
  from xai.formatter import Report
label_desc: Use image node_id 7 for calling the Dict2Obj obj's underlying member method code with example usage: obj.add_header(text) without return types