@verbosity.setter
def verbosity(self, verbosity: Union[(Verbosity, int, str)]):
    verbosity_str_options = [v for v in _VERBOSITY_TO_LOGLEVEL if isinstance(v, str)]
    if isinstance(verbosity, Verbosity):
        self._verbosity = verbosity
    elif isinstance(verbosity, int):
        self._verbosity = Verbosity(verbosity)
    elif isinstance(verbosity, str):
        verbosity = verbosity.lower()
        if (verbosity not in verbosity_str_options):
            raise ValueError(f'Cannot set verbosity to {verbosity}. Accepted string values are: {verbosity_str_options}')
        else:
            self._verbosity = Verbosity(verbosity_str_options.index(verbosity))
    else:
        _type_check(verbosity, 'verbosity', (str, int))
    _set_log_level(self, _VERBOSITY_TO_LOGLEVEL[self._verbosity])
@verbosity.setter
def verbosity(self, verbosity: Union[(Verbosity, int, str)]):
    verbosity_str_options = [v for v in _VERBOSITY_TO_LOGLEVEL if isinstance(v, str)]
    if isinstance(verbosity, Verbosity):
        self._verbosity = verbosity
    elif isinstance(verbosity, int):
        self._verbosity = Verbosity(verbosity)
    elif isinstance(verbosity, str):
        verbosity = verbosity.lower()
        if (verbosity not in verbosity_str_options):
            raise ValueError(f'Cannot set verbosity to {verbosity}. Accepted string values are: {verbosity_str_options}')
        else:
            self._verbosity = Verbosity(verbosity_str_options.index(verbosity))
    else:
        _type_check(verbosity, 'verbosity', (str, int))
    _set_log_level(self, _VERBOSITY_TO_LOGLEVEL[self._verbosity])