An animal has been trained to perform a trick.