def METHOD_NAME(data):
    mod = PooledOLS(data.y, data.x, weights=data.w)
    res = mod.fit(cov_type="clustered", clusters=data.vc1, debiased=False)
    y = mod.dependent.dataframe.copy()
    x = mod.exog.dataframe.copy()
    w = mod.weights.dataframe
    y.index = np.arange(len(y))
    w.index = x.index = y.index
    clusters = mod.reformat_clusters(data.vc1)
    ols_mod = IV2SLS(y, x, None, None, weights=w)
    res2 = ols_mod.fit(cov_type="clustered", clusters=clusters.dataframe)
    assert_results_equal(res, res2)