code: def test_sample(means, covs):
      torch.manual_seed(0)
  
      X = StudentT(3, means, covs).sample(1)
      assert_array_almost_equal(X, [[2.290756, 2.747659, -0.361462]])
  
      X = StudentT(3, means, covs).sample(5)
      assert_array_almost_equal(
          X,
          [
              [1.2340, 3.7050, -1.7784],
              [-0.3130, 0.7819, 1.6609],
              [0.6525, 4.5185, 1.4070],
              [-1.2491, 2.8038, 0.3782],
              [-0.4787, 2.9747, 0.3687],
          ],
          3,
      )
  
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 12 for calling a global function with example usage: test_sample(means, covs) without return types