code: def test_index_params():
      raw = pd.Series([1, 2, 3], name="a")
      raw.index.name = "b"
      series = Series(raw)
      series = series[series < 2]
      index = series.index
      index = tile(index)
      c = index.chunks[0]
  
      assert index.T is index
  
      assert any(np.isnan(s) for s in c.params["shape"])
      assert np.isnan(c.params["index_value"].min_val)
      c.params = c.get_params_from_data(raw[raw < 2].index)
      # shape and index_value updated
      assert not any(np.isnan(s) for s in c.params["shape"])
      assert not np.isnan(c.params["index_value"].min_val)
  
      params = c.params.copy()
      params.pop("index", None)
      index.params = params
      assert np.prod(index.shape) > 0
      index.refresh_params()
  
file_path: mars/mars/dataframe/tests/test_core.py
imports: import numpy
  import pandas
  import pytest
  from ...core import tile
  from ...lib.groupby_wrapper import wrapped_groupby
  from ...utils import pd_release_version
  from ..None import cut
  from ..initializer import DataFrame, Series, Index
label_desc: Use image node_id 3 for calling a global function with example usage: test_index_params() without return types