def default_input(input, default=None):
    """Process the keyword input in the function.

    Args:
        input:
            Keyword input for the function.

    Return:
        `default` when input is `None`, otherwise `input`.
    """
    if input is None:
        return default
    else:
        return input