def ensureTuple(value):
    """
    Function that wraps an input value in a tuple if it is not already a tuple
    """
    
    if isinstance(value, tuple):
        value_tuple = value
    else:
        value_tuple = (value,)  # comma creates the tuple

    return value_tuple