code: def test_number_value(unittest):
      df = pd.DataFrame(
          {
              "year": [
                  1992.0,
                  2005.0,
                  2011.0,
                  0.0,
                  2008.0,
                  1999.0,
                  1983.0,
                  2010.0,
                  0.0,
                  2002.0,
              ]
          }
      )
      data_id, replacement_type = "1", "value"
      build_data_inst({data_id: df})
  
      cfg = [dict(value=0, type="raw", replace="nan")]
      builder = ColumnReplacement(
          data_id, "year", replacement_type, cfg
      )
      verify_builder(
          builder,
          lambda col: unittest.assertEqual(
              np.isnan(col.values[-2]), True
          ),
      )
  
file_path: dtale/tests/dtale/test_replacements.py
imports: import json
  import numpy
  import pandas
  import pytest
  import sklearn
  from pkg_resources import parse_version
  from six import PY3
  from dtale.column_replacements import ColumnReplacement
  from tests.dtale.test_views import app
  from tests.dtale import build_data_inst, build_dtypes
label_desc: Use image node_id 6 for calling a global function with example usage: test_number_value(unittest) without return types