code: def _get_transform_column_result(
      series: pd.Series,
      function: Callable,
      elementwise: bool,
  ) -> pd.Series:
      """Perform the actual computation for Series transformation."""
      if elementwise:
          return series.apply(function)
      return function(series)
  
imports: from typing import Callable, Dict, Hashable, List, Optional, Tuple, Union
  import pandas
  import pandas_flavor
  from janitor.utils import check, check_column, deprecated_alias
label_desc: Use image node_id 1 for calling a global function with example usage: _get_transform_column_result(series, function, elementwise) and returns: function, series