Tyrannosaurus is a massive meat eating dinosaur that lived in North America 68 to 65 million years ago. Despite being a real dinosaur, it also appeared in Transformers (film)
Although wasn't seen running with the brachiosaurs and hadrosaurs, it's corpses were found in the Artic during the film along with Spinosaurus. The Tyrannosaurus might have died after the dinosaurs in the opening scene since it wasn't seen. Grimlock the leader of the Dinobots can turn into Tyrannosaurus form.
Although it was seen in the film there were some errors. For example it never meet Spinosaurus. Another mistake was Tyrannosaurus did not live in the Artic. It actually lived in Canada and the USA. The most common is that Grimlock is bigger than a real t.rex since he was 330 tonnes. It was also the same with the Tyrannosaurus corpses.