tf.compat.v1.flags.mark_flag_as_required

Ensures that flag is not None during program execution.