code: def test_params():
      raw = np.random.rand(10, 10)
      a = mt.tensor(raw)
      a = a[a[0] < 0.5]
      a = tile(a)
      c = a.chunks[0]
  
      assert any(np.isnan(s) for s in c.params["shape"])
      c.params = c.get_params_from_data(raw[raw[0] < 0.5])
      assert not any(np.isnan(s) for s in c.params["shape"])
  
      params = c.params.copy()
      params.pop("index", None)
      a.params = params
      assert np.prod(a.shape) > 0
      a.refresh_params()
  
imports: import numpy
  from ...None import tensor
  from ...core import tile
label_desc: Use image node_id 1 for calling a global function with example usage: test_params() without return types