Which meaning best matches the idiom An object lesson?

  • By any possible means
  • To be suitable for a need or purpose
  • Having nothing useful to do or feeling unsettled
  • A clear practical example or warning