def _flatten_function(self, obj):
    if self.unpicklable:
        data = {tags.FUNCTION: util.importable_name(obj)}
    else:
        data = None
    return data
def _flatten_function(self, obj):
    if self.unpicklable:
        data = {tags.FUNCTION: util.importable_name(obj)}
    else:
        data = None
    return data