wrap method in python. There are any references about wrap method in python in here. you can look below.