docstr: add information of field value distribution for categorical type to the report.
  Details see analyzers inside `xai.data_explorer.categorical_analyzer`
  
  Args:
      field_name (str): data field name
      field_distribution (:dict of [a type of stats]):
          -key: label_name
          -value: frequency distribution under the `label_name`(dict)
              - key: field value
              - value: field value frequency
      max_values_display (int): maximum number of values displayed
                          default 20
      colors (list): the list of color code for rendering different class
      notes (str, Optional):
          explain the block
docstr_tok: ["add","information","of","field","value","distribution","for","categorical","type","to","the","report",".","Details","see","analyzers","inside","`","xai.data_explorer.categorical_analyzer","`","Args",":","field_name","(","str",")",":","data","field","name","field_distribution","(",":","dict","of","[","a","type","of","stats","]",")",":","-key",":","label_name","-value",":","frequency","distribution","under","the","`","label_name","`","(","dict",")","-","key",":","field","value","-","value",":","field","value","frequency","max_values_display","(","int",")",":","maximum","number","of","values","displayed","default","20","colors","(","list",")",":","the","list","of","color","code","for","rendering","different","class","notes","(","str",",","Optional",")",":","explain","the","block"]
code: def add_categorical_field_distribution(
      self,
      field_name: str,
      field_distribution: dict,
      max_values_display=20,
      colors=None,
      notes=None,
  ):
      """
      add information of field value distribution for categorical type to the report.
      Details see analyzers inside `xai.data_explorer.categorical_analyzer`
  
      Args:
          field_name (str): data field name
          field_distribution (:dict of [a type of stats]):
              -key: label_name
              -value: frequency distribution under the `label_name`(dict)
                  - key: field value
                  - value: field value frequency
          max_values_display (int): maximum number of values displayed
                              default 20
          colors (list): the list of color code for rendering different class
          notes (str, Optional):
              explain the block
      """
      from xai.formatter.contents import CategoricalFieldDistribution
  
      self.contents.append(
          CategoricalFieldDistribution(
              field_name=field_name,
              field_distribution=field_distribution,
              max_values_display=max_values_display,
              colors=colors,
              notes=notes,
          )
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from typing import Tuple, Dict, List
  from xai.data import explorer
  from xai import MODE
label_desc: Use image node_id 21 for calling the Section obj's underlying member method code with example usage: obj.add_categorical_field_distribution(field_name, field_distribution, max_values_display, colors, notes) without return types