def serialize_option(options_dict, key, upper=False):
    if key in options_dict:
        value = flexible_str(options_dict[key])
        options_dict[key] = value.upper() if upper else value
dataset/ETHPy150Open corydolphin/flask-cors/flask_cors/core.py/serialize_option/original