def commastring2list(output_type=str):
    """Returns a lambda function which converts a comma separated string into a list of a given type

    Args:
        output_type (function, optional): string type conversion function. Defaults to str.

    Returns:
        function: lambda function
    """
    return lambda input_str: list(map(output_type, input_str.split(",")))