code: def test_reset_index():
      data = pd.DataFrame(
          [
              ("bird", 389.0),
              ("bird", 24.0),
              ("mammal", 80.5),
              ("mammal", np.nan),
          ],
          index=["falcon", "parrot", "lion", "monkey"],
          columns=("class", "max_speed"),
      )
      df = md.DataFrame(data, chunk_size=2).reset_index()
      r = data.reset_index()
  
      assert df.shape == (4, 3)
      pd.testing.assert_series_equal(df.dtypes, r.dtypes)
      pd.testing.assert_index_equal(
          df.columns_value.to_pandas(), r.columns
      )
  
      df2 = tile(df)
  
      assert len(df2.chunks) == 2
      assert df2.chunks[0].shape == (2, 3)
      pd.testing.assert_index_equal(
          df2.chunks[0].index_value.to_pandas(), pd.RangeIndex(2)
      )
      pd.testing.assert_series_equal(df2.chunks[0].dtypes, r.dtypes)
      assert df2.chunks[1].shape == (2, 3)
      pd.testing.assert_index_equal(
          df2.chunks[1].index_value.to_pandas(), pd.RangeIndex(2, 4)
      )
      pd.testing.assert_series_equal(df2.chunks[1].dtypes, r.dtypes)
  
      df = md.DataFrame(data, chunk_size=1).reset_index(drop=True)
      r = data.reset_index(drop=True)
  
      assert df.shape == (4, 2)
      pd.testing.assert_series_equal(df.dtypes, r.dtypes)
  
      df2 = tile(df)
  
      assert len(df2.chunks) == 8
  
      for c in df2.chunks:
          assert c.shape == (1, 1)
          pd.testing.assert_index_equal(
              c.index_value.to_pandas(),
              pd.RangeIndex(c.index[0], c.index[0] + 1),
          )
          pd.testing.assert_series_equal(
              c.dtypes, r.dtypes[c.index[1] : c.index[1] + 1]
          )
  
      # test Series
      series_data = pd.Series(
          [1, 2, 3, 4],
          name="foo",
          index=pd.Index(["a", "b", "c", "d"], name="idx"),
      )
      s = md.Series(series_data, chunk_size=2).reset_index()
      r = series_data.reset_index()
  
      assert s.shape == (4, 2)
      pd.testing.assert_series_equal(s.dtypes, r.dtypes)
  
      s2 = tile(s)
      assert len(s2.chunks) == 2
      assert s2.chunks[0].shape == (2, 2)
      pd.testing.assert_index_equal(
          s2.chunks[0].index_value.to_pandas(), pd.RangeIndex(2)
      )
      assert s2.chunks[1].shape == (2, 2)
      pd.testing.assert_index_equal(
          s2.chunks[1].index_value.to_pandas(), pd.RangeIndex(2, 4)
      )
  
      with pytest.raises(TypeError):
          md.Series(series_data, chunk_size=2).reset_index(inplace=True)
  
imports: import numpy
  import pandas
  import pytest
  from ....None import dataframe
  from ....None import tensor
  from ....core import tile
  from ....tensor.core import TENSOR_CHUNK_TYPE, TENSOR_TYPE, Tensor
  from ...core import SERIES_CHUNK_TYPE, SERIES_TYPE, Series, DATAFRAME_TYPE, DataFrame, DATAFRAME_CHUNK_TYPE
  from ...datasource.from_tensor import dataframe_from_tensor
  from ..iloc import DataFrameIlocGetItem, DataFrameIlocSetItem, IndexingError, HeadTailOptimizedOperandMixin
  from ..loc import DataFrameLocGetItem
label_desc: Use image node_id 10 for calling a global function with example usage: test_reset_index() without return types