def modify_coeff(kwargs, mult=1.0):
    """Change coefficient of the loss."""
    if 'loss_coeff' in kwargs:
        kwargs_copy = {x: y for x, y in kwargs.items()}
        kwargs_copy['loss_coeff'] = kwargs['loss_coeff'] * mult
        return kwargs_copy
    return kwargs