def __check_function_type(func):
    """Check if it is a function-like object."""
    if not callable(func):
        raise TypeError(
            'First item of the tuple (func, args, cols) must be a function-like object not a {} object'
            .format(type(func)))
    else:
        return func
