docstr: Rendering Content
  
  Args:
      report (Report): report object
      contents (dict): contents dict object
      level (int): content level
docstr_tok: ["Rendering","Content","Args",":","report","(","Report",")",":","report","object","contents","(","dict",")",":","contents","dict","object","level","(","int",")",":","content","level"]
code: def render_contents(report: Report, contents: dict, level: int):
      """
      Rendering Content
  
      Args:
          report (Report): report object
          contents (dict): contents dict object
          level (int): content level
      """
      current_level = level
      for content in contents:
          if Constant.SECTION_TITLE.value in content:
              title = content[Constant.SECTION_TITLE.value]
              if not (title is None):
                  if current_level == Constant.S1.value:
                      report.detail.add_new_page()
                      report.detail.add_section_title(text=title)
                  elif current_level == Constant.H1.value:
                      report.detail.add_header_level_1(text=title)
                  elif current_level == Constant.H2.value:
                      report.detail.add_header_level_2(text=title)
                  else:
                      report.detail.add_header_level_3(text=title)
          if Constant.SECTION_DESC.value in content:
              desc = content[Constant.SECTION_DESC.value]
              if not (desc is None):
                  report.detail.add_paragraph(text=desc)
          if Constant.COMPONENT.value in content:
              component = content[Constant.COMPONENT.value]
              Controller.render_component(
                  report=report,
                  component=component,
                  level=current_level,
              )
          if Constant.SECTION_LIST.value in content:
              Controller.render_contents(
                  report=report,
                  contents=content[Constant.SECTION_LIST.value],
                  level=current_level + 1,
              )
  
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 3 for calling the Controller obj's underlying member method code with example usage: obj.render_contents(report, contents, level) without return types