code: def test_when_fitting_normal_scipy_distribution_then_it_should_return_correctly_fitted_parameter_values():
      distribution = ScipyDistribution(stats.norm)
  
      X = np.random.normal(0, 1, 1000)
      distribution.fit(X)
  
      assert distribution.parameters["loc"] == approx(0, abs=0.1)
      assert distribution.parameters["scale"] == approx(1, abs=0.1)
  
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 4 for calling a global function with example usage: test_when_fitting_normal_scipy_distribution_then_it_should_return_correctly_fitted_parameter_values() without return types