<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def xgb_progressbar(rounds=1000):
 """Progressbar for xgboost using tqdm library. Examples -------- """

    pbar = tqdm(total=rounds)

    def callback(_, ):
        pbar.update(1)

    return callback