code: def test_index_fill_na_execution(setup):
      idx_data = np.array([np.nan] * 20)
      for _ in range(10):
          idx_data[random.randint(0, 19)] = random.randint(0, 99)
      idx_raw = pd.Index(idx_data)
  
      # test single chunk
      idx = md.Index(idx_raw)
  
      r = idx.fillna(1)
      pd.testing.assert_index_equal(
          r.execute().fetch(), idx_raw.fillna(1)
      )
  
      idx = md.Index(idx_raw, chunk_size=3)
  
      # test chunked with numeric fill
      r = idx.fillna(1)
      pd.testing.assert_index_equal(
          r.execute().fetch(), idx_raw.fillna(1)
      )
  
file_path: mars/mars/dataframe/missing/tests/test_missing_execution.py
imports: import random
  import re
  import string
  import numpy
  import pandas
  from ....None import dataframe
label_desc: Use image node_id 4 for calling a global function with example usage: test_index_fill_na_execution(setup) without return types