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