code: def test_when_fitting_scipy_distribution_with_normal_distribution_then_it_should_return_correctly_fitted_parameter_values():
      distribution = ScipyDistribution(stats.norm)
      distribution.fit(
          ScipyDistribution(stats.norm, loc=3, scale=2).draw_samples(
              10000
          )
      )
  
      assert distribution.parameters["loc"] == approx(3, abs=0.3)
      assert distribution.parameters["scale"] == approx(2, abs=0.3)
  
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 7 for calling a global function with example usage: test_when_fitting_scipy_distribution_with_normal_distribution_then_it_should_return_correctly_fitted_parameter_values() without return types