code: def test_case_when_replacement_callable(df):
      """Test case_when for callable."""
      result = df.case_when(
          "a > 10",
          lambda df: df.a + 10,
          default=lambda df: df.a * 2,
          column_name="bleh",
      )
      expected = np.where(df.a > 10, df.a + 10, df.a * 2)
      expected = df.assign(bleh=expected)
      assert_frame_equal(result, expected)
  
imports: import numpy
  import pandas
  import pytest
  from hypothesis import given, settings
  from pandas.testing import assert_frame_equal
  from janitor.testing_utils.strategies import categoricaldf_strategy, df_strategy
label_desc: Use image node_id 11 for calling a global function with example usage: test_case_when_replacement_callable(df) without return types