# код должен вывести только "must be printed" with need_run(True): print('must be printed') with need_run(False): print('must not be printed')