code: def make_transformer(func):
      class StaticTransformer(BaseTransformer):
          def fit(self):
              logger.info(
                  'StaticTransformer "{}" is not fittable.'
                  'By running "fit_transform()", you simply "transform()".'.format(
                      self.__class__.__name__
                  )
              )
              return self
  
          def transform(self, *args, **kwargs):
              return func(*args, **kwargs)
  
          def persist(self, filepath):
              logger.info(
                  'StaticTransformer "{}" is not persistable.'.format(
                      self.__class__.__name__
                  )
              )
  
      _transformer = StaticTransformer()
      _transformer.__class__.__name__ = func.__name__
      return _transformer
  
imports: import os
  import pprint
  from collections import defaultdict
  from sklearn.externals import joblib
  from steppy.adapter import Adapter, AdapterError
  from steppy.utils import display_upstream_structure, persist_as_png, get_logger, initialize_logger
label_desc: Use image node_id 1 for calling a global function with example usage: make_transformer(func) and returns: _transformer, self, func