code: def test_series_comparison_nan(comparison):
      s = pd.Series([1, 2, 3, 4, 5, 6, 7])
      s_nan = pd.Series([1, -1, 8, np.nan, 5, 6, 2.4])
      ds = dd.from_pandas(s, 3)
      ds_nan = dd.from_pandas(s_nan, 3)
  
      fill_value = 7
      comparison_pd = getattr(s, comparison)
      comparison_dd = getattr(ds, comparison)
      assert_eq(
          comparison_dd(ds_nan, fill_value=fill_value),
          comparison_pd(s_nan, fill_value=fill_value),
      )
  
imports: from __future__ import annotations
  import contextlib
  import warnings
  from datetime import datetime
  import numpy
  import pandas
  import pytest
  from pandas.api.types import is_scalar
  import dask.dataframe
  from dask.array.numpy_compat import _numpy_125
  from dask.dataframe._compat import PANDAS_GE_140, PANDAS_GE_150, PANDAS_GE_200, PANDAS_VERSION, check_numeric_only_deprecation
  from dask.dataframe.utils import assert_dask_graph, assert_eq, make_meta, pyarrow_strings_enabled
label_desc: Use image node_id 24 for calling a global function with example usage: test_series_comparison_nan(comparison) without return types