code: def test_series_fill_na_execution(setup):
      series_raw = pd.Series(np.nan, index=range(20))
      for _ in range(3):
          series_raw.iloc[random.randint(0, 19)] = random.randint(0, 99)
      value_series_raw = pd.Series(
          np.random.randint(0, 100, (10,)).astype(np.float32)
      )
  
      # test single chunk
      series = md.Series(series_raw)
  
      r = series.fillna(1)
      pd.testing.assert_series_equal(
          r.execute().fetch(), series_raw.fillna(1)
      )
  
      # test single chunk with value as single chunk
      value_series = md.Series(value_series_raw)
      r = series.fillna(value_series)
      pd.testing.assert_series_equal(
          r.execute().fetch(), series_raw.fillna(value_series_raw)
      )
  
      series = md.Series(series_raw, chunk_size=3)
  
      # test chunked with numeric fill
      r = series.fillna(1)
      pd.testing.assert_series_equal(
          r.execute().fetch(), series_raw.fillna(1)
      )
  
      # test forward fill in axis=0 without limit
      r = series.fillna(method="pad")
      pd.testing.assert_series_equal(
          r.execute().fetch(), series_raw.fillna(method="pad")
      )
  
      # test backward fill in axis=0 without limit
      r = series.fillna(method="backfill")
      pd.testing.assert_series_equal(
          r.execute().fetch(), series_raw.fillna(method="backfill")
      )
  
      # test fill with series
      value_df = md.Series(value_series_raw, chunk_size=4)
      r = series.fillna(value_df)
      pd.testing.assert_series_equal(
          r.execute().fetch(), series_raw.fillna(value_series_raw)
      )
  
      # test inplace tile
      series.fillna(1, inplace=True)
      pd.testing.assert_series_equal(
          series.execute().fetch(), series_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 3 for calling a global function with example usage: test_series_fill_na_execution(setup) without return types