code: def test_given_gaussian_data_when_fitting_scipy_distribution_automatically_then_it_should_return_correctly_fitted_parameter_values():
      distribution = ScipyDistribution()
  
      X = np.random.normal(0, 1, 5000)
      distribution.fit(X)
  
      assert np.mean(distribution.draw_samples(1000)) == approx(
          0, abs=0.2
      )
      assert np.std(distribution.draw_samples(1000)) == approx(
          1, abs=0.2
      )
  
file_path: dowhy/tests/gcm/test_stochastic_models.py
imports: import numpy
  import pytest
  from flaky import flaky
  from pytest import approx
  from scipy import stats
  from dowhy.gcm import BayesianGaussianMixtureDistribution, EmpiricalDistribution, ScipyDistribution
label_desc: Use image node_id 5 for calling a global function with example usage: test_given_gaussian_data_when_fitting_scipy_distribution_automatically_then_it_should_return_correctly_fitted_parameter_values() without return types