code: def test_sample(mins, maxs):
      torch.manual_seed(0)
  
      X = Uniform(mins, maxs).sample(1)
      assert_array_almost_equal(X, [[1.491016, 2.427843, 1.132716]])
  
      X = Uniform(mins, maxs).sample(5)
      assert_array_almost_equal(
          X,
          [
              [0.6169, 1.0915, 1.9511],
              [1.4762, 2.7997, 1.6834],
              [1.8175, 1.2118, 1.6026],
              [0.3536, 0.6897, 1.4408],
              [1.5445, 2.2232, 2.2000],
          ],
          3,
      )
  
imports: import os
  import numpy
  import torch
  import pytest
  from pomegranate.distributions import Uniform
  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(mins, maxs) without return types