code: def _test_efd_from_summaries(d, name1, name2, values):
      assert_array_almost_equal(getattr(d, name1), values)
      assert_array_almost_equal(getattr(d, name2), numpy.log(values))
      assert_array_almost_equal(d._w_sum, numpy.zeros(d.d))
      assert_array_almost_equal(d._xw_sum, numpy.zeros(d.d))
  
file_path: pomegranate/tests/distributions/_utils.py
imports: import numpy
  import torch
  from nose.tools import assert_raises
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 6 for calling a global function with example usage: _test_efd_from_summaries(d, name1, name2, values) without return types