code: def is_normalized(dist):
      """
      Utility function for checking whether a single distribution or set of conditional categorical distributions is normalized.
      Returns True if all distributions integrate to 1.0
      """
  
      if is_obj_array(dist):
          normed_arrays = []
          for i, arr in enumerate(dist):
              column_sums = arr.sum(axis=0)
              normed_arrays.append(
                  np.allclose(column_sums, np.ones_like(column_sums))
              )
          out = all(normed_arrays)
      else:
          column_sums = dist.sum(axis=0)
          out = np.allclose(column_sums, np.ones_like(column_sums))
  
      return out
  
imports: import numpy
  import pandas
  import seaborn
  import matplotlib.pyplot
  import warnings
  import itertools
label_desc: Use image node_id 19 for calling a global function with example usage: is_normalized(dist) and returns: out