def resolve_color_default(color=None):
if color is not None:<EOL><INDENT>return color<EOL><DEDENT>ctx = get_current_context(silent=True)<EOL>if ctx is not None:<EOL><INDENT>return ctx.color<EOL><DEDENT>
Internal helper to get the default value of the color flag.  If a
    value is passed it's returned unchanged, otherwise it's looked up from
    the current context.