def is_dark_rgb(r, g, b):
try:<EOL><INDENT>midpoint = int(environ.get('<STR_LIT>', None))<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT>if not midpoint:<EOL><INDENT>term = environ.get('<STR_LIT>', None)<EOL>print("<STR_LIT>", midpoint, '<STR_LIT>',  (<NUM_LIT:16>*<NUM_LIT:5> + <NUM_LIT:16>*g + <NUM_LIT:16>*b))<EOL>midpoint = <NUM_LIT> if term and term == '<STR_LIT>' else <NUM_LIT><EOL><DEDENT>if ( (<NUM_LIT:16>*<NUM_LIT:5> + <NUM_LIT:16>*g + <NUM_LIT:16>*b) < midpoint ):<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Pass as parameters R G B values in hex
    On return, variable is_dark_bg is set