Ali Carter will return to tournament snooker at the Shanghai Masters after being given the all-clear from testicular cancer.