code: def custom_str_handler(aggs):
      def _handler():
          for agg in aggs:
              if agg == "gmean":
                  yield agg
              elif agg == "str_joiner":
                  yield "'|'.join"
              else:
                  yield "'{}'".format(agg)
  
      return list(_handler())
  
imports: import pandas
  from scipy import stats
  import dtale.global_state
  import dtale.pandas_util
  from dtale.query import run_query
  from dtale.utils import make_list
label_desc: Use image node_id 5 for calling a global function with example usage: custom_str_handler(aggs) and returns: list