def make_set(str_data, name=None):
    '\n    Construct a set containing the specified character strings.\n\n    Parameters\n    ----------\n    str_data : None, str, or list of strs\n        Character string(s) to be included in the set.\n\n    name : str, optional\n        A name to be used in error messages.\n\n    Returns\n    -------\n    set\n        A set of character strings.\n    '
    if (not str_data):
        return set()
    elif isinstance(str_data, str):
        return {str_data}
    elif isinstance(str_data, (set, list)):
        for item in str_data:
            if (not isinstance(item, str)):
                typ = type(item).__name__
                msg = f"Items in tags should be of type string, but type '{typ}' was found."
                raise TypeError(msg)
        if isinstance(str_data, set):
            return str_data
        elif isinstance(str_data, list):
            return set(str_data)
    elif name:
        raise TypeError('The {} argument should be str, set, or list: {}'.format(name, str_data))
    else:
        raise TypeError('The argument should be str, set, or list: {}'.format(str_data))
Construct a set containing the specified character strings.

Parameters
----------
str_data : None, str, or list of strs
    Character string(s) to be included in the set.

name : str, optional
    A name to be used in error messages.

Returns
-------
set
    A set of character strings.
def make_set(str_data, name=None):
    '\n    Construct a set containing the specified character strings.\n\n    Parameters\n    ----------\n    str_data : None, str, or list of strs\n        Character string(s) to be included in the set.\n\n    name : str, optional\n        A name to be used in error messages.\n\n    Returns\n    -------\n    set\n        A set of character strings.\n    '
    if (not str_data):
        return set()
    elif isinstance(str_data, str):
        return {str_data}
    elif isinstance(str_data, (set, list)):
        for item in str_data:
            if (not isinstance(item, str)):
                typ = type(item).__name__
                msg = f"Items in tags should be of type string, but type '{typ}' was found."
                raise TypeError(msg)
        if isinstance(str_data, set):
            return str_data
        elif isinstance(str_data, list):
            return set(str_data)
    elif name:
        raise TypeError('The {} argument should be str, set, or list: {}'.format(name, str_data))
    else:
        raise TypeError('The argument should be str, set, or list: {}'.format(str_data))