This can happen in the event of a temporary fork in the chain (where different nodes in the network have a different opinion about the most recent block). But it's not something you can generate on purpose.
Can you please explain why you would want to do this? Perhaps we can point to a different way of achieving the same outcome.