class_docstr: Unit tests for metropolis sampling of discrete distributions 
class_docstr_tok: ["Unit","tests","for","metropolis","sampling","of","discrete","distributions"]
docstr: Computes Variance 
docstr_tok: ["Computes","Variance"]
code: def _compute_variance(self, samples):
      """Computes Variance"""
      return np.var(samples)
  
file_path: dragonfly/dragonfly/distributions/unittest_metropolis_discrete.py
imports: from __future__ import absolute_import
  import unittest
  import numpy
  from .discrete import DiscreteUniform, Bernoulli
  from ..utils.base_test_class import BaseTestClass, execute_tests
label_desc: Use image node_id 4 for calling the MetropolisDiscreteTestCases obj's underlying member method code with example usage: obj._compute_variance(samples) and returns: np