code: def test_value(unittest):
      df = replacements_data()
      data_id, replacement_type = "1", "value"
      build_data_inst({data_id: df})
  
      cfg = [dict(value="nan", type="raw", replace="for test")]
      builder = ColumnReplacement(data_id, "e", replacement_type, cfg)
      verify_builder(
          builder,
          lambda col: unittest.assertEqual(
              list(col.values), ["a", "for test", "b"]
          ),
      )
  
      cfg = [
          dict(value="nan", type="raw", replace="for test"),
          dict(value="a", type="raw", replace="d"),
      ]
      builder = ColumnReplacement(data_id, "e", replacement_type, cfg)
      verify_builder(
          builder,
          lambda col: unittest.assertEqual(
              list(col.values), ["d", "for test", "b"]
          ),
      )
  
      cfg = [dict(value="nan", type="agg", replace="median")]
      builder = ColumnReplacement(data_id, "d", replacement_type, cfg)
      verify_builder(
          builder,
          lambda col: unittest.assertEqual(
              list(col.values), [1.1, 2.05, 3]
          ),
      )
  
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 5 for calling a global function with example usage: test_value(unittest) without return types