code: def test_itertuples(self):
      pdf = pd.DataFrame(
          {"num_legs": [4, 2], "num_wings": [0, 2]},
          index=["dog", "hawk"],
      )
      psdf = ps.from_pandas(pdf)
  
      for ptuple, ktuple in zip(
          pdf.itertuples(index=False, name="Animal"),
          psdf.itertuples(index=False, name="Animal"),
      ):
          self.assert_eq(ptuple, ktuple)
      for ptuple, ktuple in zip(
          pdf.itertuples(name=None), psdf.itertuples(name=None)
      ):
          self.assert_eq(ptuple, ktuple)
      for ptuple, ktuple in zip(
          pdf.itertuples(index=False, name=None),
          psdf.itertuples(index=False, name=None),
      ):
          self.assert_eq(ptuple, ktuple)
  
      pdf.index = pd.MultiIndex.from_arrays(
          [[1, 2], ["black", "brown"]], names=("count", "color")
      )
      psdf = ps.from_pandas(pdf)
      for ptuple, ktuple in zip(
          pdf.itertuples(name="Animal"), psdf.itertuples(name="Animal")
      ):
          self.assert_eq(ptuple, ktuple)
  
      pdf.columns = pd.MultiIndex.from_arrays(
          [["CA", "WA"], ["age", "children"]], names=("origin", "info")
      )
      psdf = ps.from_pandas(pdf)
      for ptuple, ktuple in zip(
          pdf.itertuples(name="Animal"), psdf.itertuples(name="Animal")
      ):
          self.assert_eq(ptuple, ktuple)
  
      pdf = pd.DataFrame([1, 2, 3])
      psdf = ps.from_pandas(pdf)
      for ptuple, ktuple in zip(
          (pdf + 1).itertuples(name="num"),
          (psdf + 1).itertuples(name="num"),
      ):
          self.assert_eq(ptuple, ktuple)
  
      # DataFrames with a large number of columns (>254)
      pdf = pd.DataFrame(np.random.random((1, 255)))
      psdf = ps.from_pandas(pdf)
      for ptuple, ktuple in zip(
          pdf.itertuples(name="num"), psdf.itertuples(name="num")
      ):
          self.assert_eq(ptuple, ktuple)
  
imports: import unittest
  import numpy
  import pandas
  from pyspark import pandas
  from pyspark.pandas.config import option_context
  from pyspark.testing.pandasutils import ComparisonTestBase
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 12 for calling the FrameIndexingMixin obj's underlying member method code with example usage: obj.test_itertuples() without return types