<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
I can't figure out how to do a Two-sample KS test in Scipy.
<ASSISTANT_TASK:>
Python Code:
from scipy import stats
import numpy as np
np.random.seed(42)
x = np.random.normal(0, 1, 1000)
y = np.random.normal(0, 1, 1000)
statistic, p_value = stats.ks_2samp(x, y)
<END_TASK>