It was migrated because it contained hypothetical content. This was indicated by the vagueness of the question as well as generic names such as do_something(). Such questions are off-topic as we only review real code with sufficient context. More information about that can be found herehere.
replaced http://meta.codereview.stackexchange.com/ with https://codereview.meta.stackexchange.com/
replaced http://meta.codereview.stackexchange.com/ with https://codereview.meta.stackexchange.com/