code: def test_from_summaries_inertia(X, w, means, covs):
      d = StudentT(3, means, covs, inertia=0.3)
      d.summarize(X[:4])
      d.from_summaries()
      _test_fit_params(
          d, [1.4275, 1.5025, 1.715], [0.742312, 1.368812, 0.71175]
      )
  
      d.summarize(X[4:])
      d.from_summaries()
      _test_fit_params(
          d,
          [2.994917, 1.43075, 1.541167],
          [1.44225, 0.508644, 2.464414],
      )
  
      d = StudentT(3, means, covs, inertia=0.3)
      d.summarize(X)
      d.from_summaries()
      _test_fit_params(
          d, [2.07, 1.51, 1.69], [1.771715, 1.222857, 1.526857]
      )
  
imports: import os
  import numpy
  import torch
  import pytest
  from pomegranate.distributions import StudentT
  from ._utils import _test_initialization_raises_two_parameters
  from ._utils import _test_initialization
  from ._utils import _test_predictions
  from ._utils import _test_efd_from_summaries
  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 29 for calling a global function with example usage: test_from_summaries_inertia(X, w, means, covs) without return types