code: def check_private_entropy(distfn, args, superclass):
      # compare a generic _entropy with the distribution-specific implementation
      npt.assert_allclose(
          distfn._entropy(*args), superclass._entropy(distfn, *args)
      )
  
imports: from __future__ import division, print_function, absolute_import
  import pickle
  import numpy
  import numpy.testing
  from numpy.testing import assert_allclose, assert_equal
  from scipy._lib._numpy_compat import suppress_warnings
  from pytest import raises
  import numpy.ma.testutils
  from scipy._lib._util import getargspec_no_self
  from scipy import stats
label_desc: Use image node_id 9 for calling a global function with example usage: check_private_entropy(distfn, args, superclass) without return types