class_docstr: A smoothed classifier g 
code: def _count_arr(self, arr: np.ndarray, length: int) -> np.ndarray:
      counts = np.zeros(length, dtype=int)
      for idx in arr:
          counts[idx] += 1
      return counts
  
file_path: neural-structured-learning/research/third_party/denoised_smoothing/scripts/certification_utils.py
imports: from math import ceil
  from statsmodels.stats.proportion import proportion_confint
  from scipy.stats import norm, binom_test
  import tensorflow
  import numpy
label_desc: Use image node_id 5 for calling the Smooth obj's underlying member method code with example usage: obj._count_arr(arr, length) and returns: counts