def format(keyword: str, keyword_style: str) ->str:
    """Returns formatted keyword

    Args:
        keyword: target keyword
        keyword_style: formatting style

    Returns:
        formatted keyword
    """
    expected: str = keyword
    if keyword_style == 'lower':
        expected = keyword.lower()
    if keyword_style == 'upper-all':
        expected = keyword.upper()
    if keyword_style == 'upper-head':
        expected = f'{keyword[0].upper()}{keyword[1:].lower()}'
    return expected
