docstr: Init
  
  Args:
      dictionary (dict): attribute to set
      schema (dict): schema to validate
docstr_tok: ["Init","Args",":","dictionary","(","dict",")",":","attribute","to","set","schema","(","dict",")",":","schema","to","validate"]
code: def __init__(self, dictionary, *, schema):
      """
      Init
  
      Args:
          dictionary (dict): attribute to set
          schema (dict): schema to validate
      """
      self._dict = dictionary
      self._schema = schema
  
      # validate(instance=self._dict, schema=self._schema)
      for key in self._dict:
          setattr(self, key, self._dict[key])
  
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 1 to create a new Dict2Obj object  with example: obj = Dict2Obj(dictionary)