An idiom is a common phrase which means something different from its literal meaning but can be understood because of their popular use.
Idioms are difficult for someone not good at speaking the language. Some idioms are only used by some groups of people or at certain times. The idiom shape up or ship out, which is like saying improve your behavior or leave if you don't, might be said by an employer or supervisor to an employee, but not to other people.