code: def test_durbin_watson_pandas(reset_randomstate):
      x = np.random.randn(50)
      x_series = pd.Series(x)
      assert_almost_equal(
          durbin_watson(x), durbin_watson(x_series), decimal=13
      )
  
imports: import numpy
  import pandas
  from numpy.testing import assert_almost_equal, assert_raises, assert_equal, assert_allclose
  from statsmodels.stats._adnorm import normal_ad
  from statsmodels.stats.stattools import omni_normtest, jarque_bera, durbin_watson, _medcouple_1d, medcouple, robust_kurtosis, robust_skewness
label_desc: Use image node_id 7 for calling a global function with example usage: test_durbin_watson_pandas(reset_randomstate) without return types