def METHOD_NAME(string, case_mode=None):
    """Return the string with its case translated.
    "case_mode" can be "upper", "lower" or None.
    """
    if case_mode == "lower":
        return string.lower()
    elif case_mode == "upper":
        return string.upper()
    else:
        return string