(progress_callback, start=0, end=1)
return func
Wraps a progress callback function to allocate it end-start proportion
    of an execution time.

    :param progress_callback: callable
    :param start: float
    :param end: float
    :return: callable
Wraps a progress callback function to allocate it end-start proportion
    of an execution time.
Wraps a progress callback function to allocate it end - start proportion of an execution time .
def wrap_callback(progress_callback, start=0, end=1):
    """
    Wraps a progress callback function to allocate it end-start proportion
    of an execution time.

    :param progress_callback: callable
    :param start: float
    :param end: float
    :return: callable
    """
    @wraps(progress_callback)
    def func(progress, *args, **kwargs):
        adjusted_progress = start + progress * (end - start)
        return progress_callback(adjusted_progress, *args, **kwargs)
    return func
def wrap_callback ( progress_callback , start = 0 , end = 1 ) : @ wraps ( progress_callback ) def func ( progress , * args , * * kwargs ) : adjusted_progress = start + progress * ( end - start ) return progress_callback ( adjusted_progress , * args , * * kwargs ) return func