code: def test_log_extra_custom_logger(caplog, test_df):
      """Test that we can supply a custom logger to the log_step_extra"""
      caplog.clear()
  
      logger_name = "my_custom_logger"
  
      my_logger = logging.getLogger(logger_name)
  
      @log_step_extra(len, print_fn=my_logger.info)
      def do_nothing(df, *args, **kwargs):
          return df
  
      with caplog.at_level(logging.INFO):
          test_df.pipe(do_nothing)
  
      assert logger_name in caplog.text
  
imports: import logging
  import numpy
  import pandas
  import pytest
  from sklego.pandas_utils import _add_lagged_numpy_columns, _add_lagged_pandas_columns, add_lags, log_step, log_step_extra
label_desc: Use image node_id 24 for calling a global function with example usage: test_log_extra_custom_logger(caplog, test_df) and returns: df