def validate_str_or_list(value):
    """
    Method to raise error if a value is not a list.
    :param value: value to check to make sure it is a string, list, or None
    :returns: None or TypeError
    """
    if isinstance(value, (str, list)) or value is None:
        return True
    else:
        raise TypeError('Must be a str or list')
