def create_base(base):
    """
    A function decorator. It replace the function by a class
    which call the decorated function in its new method, for
    example

    ```python
    >>> from datetime import datetime
    >>> @create_base(datetime)
    ... def date_br(s):
    ...     return datetime.strptime(s, r"%d/%m/%Y")
    >>> issubclass(date_br, datetime)
    True
    >>> date_br("01/01/2001")
    datetime.datetime(2001, 1, 1, 0, 0)

    ```
    """

    def dec(func):
        class _TypeHelper(base):
            def __new__(cls, *args, **kwargs):
                return func(*args, **kwargs)

        _TypeHelper.__name__ = func.__name__
        return _TypeHelper

    return dec