def parse_debug_value(value):
 if (value is None):
  return value
 value = value.lower()
 if (value in ('true', '1')):
  return True
 elif (value in ('false', '0')):
  return False
 elif (value in ('merge',)):
  return 'merge'
 else:
  raise ValueError()

def parse_debug_value ( value ) : if ( value is None ) : return value value = value . lower ( ) if ( value in ( 'true' , '1' ) ) : return True elif ( value in ( 'false' , '0' ) ) : return False elif ( value in ( 'merge' , ) ) : return 'merge' else : raise ValueError ( )
resolve the given string value to a debug option .