def in_test_phase(x, alt):
 if (learning_phase() is 1):
  return alt
 elif (learning_phase() is 0):
  return x
 x = switch(learning_phase(), alt, x)
 x._uses_learning_phase = True
 return x

def in_test_phase ( x , alt ) : if ( learning_phase ( ) is 1 ) : return alt elif ( learning_phase ( ) is 0 ) : return x x = switch ( learning_phase ( ) , alt , x ) x . _uses_learning_phase = True return x
selects x in test phase .