def default_str(str_, default_str):
    'Returns :attr:`str_` if it is not `None` or empty, otherwise returns\n    :attr:`default_str`.\n\n    Args:\n        str_: A string.\n        default_str: A string.\n\n    Returns:\n        Either :attr:`str_` or :attr:`default_str`.\n    '
    if ((str_ is not None) and (str_ != '')):
        return str_
    else:
        return default_str
Returns :attr:`str_` if it is not `None` or empty, otherwise returns
:attr:`default_str`.

Args:
    str_: A string.
    default_str: A string.

Returns:
    Either :attr:`str_` or :attr:`default_str`.
def default_str(str_, default_str):
    'Returns :attr:`str_` if it is not `None` or empty, otherwise returns\n    :attr:`default_str`.\n\n    Args:\n        str_: A string.\n        default_str: A string.\n\n    Returns:\n        Either :attr:`str_` or :attr:`default_str`.\n    '
    if ((str_ is not None) and (str_ != )):
        return str_
    else:
        return default_str