code: def test_when_drawing_samples_from_empirical_distribution_then_all_samples_should_be_present_in_the_data():
      X = np.random.normal(0, 1, 1000)
  
      distribution = EmpiricalDistribution()
      distribution.fit(X)
  
      X = list(X)
  
      for val in distribution.draw_samples(1000):
          assert val in X
  
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 6 for calling a global function with example usage: test_when_drawing_samples_from_empirical_distribution_then_all_samples_should_be_present_in_the_data() without return types