code: def test_weightstats_1(self):
      x1, x2 = self.x1, self.x2
      w1, w2 = self.w1, self.w2
      w1_ = 2.0 * np.ones(len(x1))
      w2_ = 2.0 * np.ones(len(x2))
  
      d1 = DescrStatsW(x1)
      #        print ttest_ind(x1, x2)
      #        print ttest_ind(x1, x2, usevar='unequal')
      #        #print ttest_ind(x1, x2, usevar='unequal')
      #        print stats.ttest_ind(x1, x2)
      #        print ttest_ind(x1, x2, usevar='unequal', alternative='larger')
      #        print ttest_ind(x1, x2, usevar='unequal', alternative='smaller')
      #        print ttest_ind(x1, x2, usevar='unequal', weights=(w1_, w2_))
      #        print stats.ttest_ind(np.r_[x1, x1], np.r_[x2,x2])
      assert_almost_equal(
          ttest_ind(x1, x2, weights=(w1_, w2_))[:2],
          stats.ttest_ind(np.r_[x1, x1], np.r_[x2, x2]),
      )
  
imports: import numpy
  from scipy import stats
  import pandas
  from numpy.testing import assert_, assert_almost_equal, assert_allclose
  from statsmodels.stats.weightstats import DescrStatsW, CompareMeans, ttest_ind, ztest, zconfint
  from statsmodels.tools.testing import Holder
label_desc: Use image node_id 2 for calling the TestWeightstats obj's underlying member method code with example usage: obj.test_weightstats_1() without return types