@classmethod
def serialize_function(cls, fn):
    """
        Returns serialized function object
        :param callable fn:
        :return dict:
        """
    ns = []
    mdl = fn.__module__
    name = fn.__name__
    if '.' in fn.__qualname__:
        ns = fn.__qualname__.split('.')[:-1]
    return {'f': name, 'm': mdl, 'n': ns}
