The TSA agent looks inside- looks around for anything not allowed to be there. If they find anything like that, they take it out- and take you out of line for a talk. If everything is OK, you get a printed notice that your bag was opened for inspection placed in your bag, they close the bag and send it on its way.