docstr: Rendering Report component
  
  Args:
      report (Report): report object
      component (dict): component info in dict
      level (int): content level
docstr_tok: ["Rendering","Report","component","Args",":","report","(","Report",")",":","report","object","component","(","dict",")",":","component","info","in","dict","level","(","int",")",":","content","level"]
code: def render_component(report: Report, component: dict, level: int):
      """
      Rendering Report component
  
      Args:
          report (Report): report object
          component (dict): component info in dict
          level (int): content level
      """
      if Constant.COMPONENT_CLASS.value in component:
          name = component[Constant.COMPONENT_CLASS.value]
          package = Controller.value_extractor(
              items=component,
              key=Constant.COMPONENT_PACKAGE.value,
              default="xai",
          )
          module = Controller.value_extractor(
              items=component,
              key=Constant.COMPONENT_MODULE.value,
              default="compiler",
          )
          attr = Controller.value_extractor(
              items=component,
              key=Constant.COMPONENT_ATTR.value,
              default=dict(),
          )
          Controller.factory(
              report=report,
              package=package,
              module=module,
              name=name,
              attr=attr,
              level=level,
          )
      else:
          raise CompilerException("class is not defined")
  
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 6 for calling the Controller obj's underlying member method code with example usage: obj.render_component(report, component, level) without return types