code: def test_holdertuple2():
      ht = HolderTuple(
          tuple_=("statistic", "extra"),
          statistic=5,
          pvalue=0.1,
          text="just something",
          extra=[1, 2, 4],
      )
      assert_equal(len(ht), 2)
      assert_equal(ht[:], [5, [1, 2, 4]])
      p, v = ht
      assert_equal([p, v], [5, [1, 2, 4]])
      p, v = ht[0], ht[1]
      assert_equal([p, v], [5, [1, 2, 4]])
      assert_equal(list(ht), [5, [1, 2, 4]])
  
      x = np.asarray(ht, dtype=object)
      assert_equal(x, np.asarray([5, [1, 2, 4]], dtype=object))
      assert_equal(x.dtype, np.dtype("O"))
      # assert_equal(pd.Series(ht).values, [5, [1, 2, 4]])
      # assert_equal(pd.Series(ht).dtype, np.dtype('O'))
  
      assert_equal(ht.statistic, 5)
      assert_equal(ht.pvalue, 0.1)
      assert_equal(ht.extra, [1, 2, 4])
      assert_equal(ht.text, "just something")
  
imports: import numpy
  from numpy.testing import assert_equal
  import pandas
  from statsmodels.stats.base import HolderTuple
label_desc: Use image node_id 2 for calling a global function with example usage: test_holdertuple2() without return types