code: def _test_efd_from_summaries(d, name1, name2, values):
      assert_array_almost_equal(getattr(d, name1), values, 4)
      assert_array_almost_equal(getattr(d, name2), numpy.log(values), 2)
      assert_array_almost_equal(d._w_sum, numpy.zeros(d.d))
      assert_array_almost_equal(d._xw_sum, numpy.zeros(d.probs.shape))
  
imports: import numpy
  import torch
  import pytest
  from pomegranate.distributions import JointCategorical
  from ._utils import _test_initialization_raises_one_parameter
  from ._utils import _test_initialization
  from ._utils import _test_predictions
  from ._utils import _test_raises
  from nose.tools import assert_raises
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 21 for calling a global function with example usage: _test_efd_from_summaries(d, name1, name2, values) without return types