code: def test_replace():
      import dtale.views as views
  
      df, _ = views.format_data(pd.DataFrame({"A": ["foo_bar"]}))
      data_id, column_type = "1", "replace"
      build_data_inst({data_id: df})
  
      cfg = {"col": "A", "search": "_bar", "replacement": "_baz"}
      builder = ColumnBuilder(data_id, column_type, "A_replace", cfg)
      verify_builder(builder, lambda col: col.values[0] == "foo_baz")
  
imports: import numpy
  import pandas
  import pytest
  import sklearn
  from numpy.random import randn
  from pkg_resources import parse_version
  from six import PY3
  import dtale.pandas_util
  from dtale.column_builders import ColumnBuilder, ZERO_STD_ERROR
  from tests.dtale import build_data_inst
label_desc: Use image node_id 21 for calling a global function with example usage: test_replace() without return types