code: def var_multinomial(probs):
      """variance of multinomial distribution
  
      var = probs * (1 - probs)
  
      """
      var = probs * (1 - probs)
      return var
  
file_path: statsmodels/statsmodels/stats/diagnostic_gen.py
imports: import numpy
  from scipy import stats
  from statsmodels.stats.base import HolderTuple
  from statsmodels.stats.effect_size import _noncentrality_chisquare
label_desc: Use image node_id 5 for calling a global function with example usage: var_multinomial(probs) and returns: var