'determine value type passed'

@staticmethod
def parse_value(inc_value, vtype=''):

    true_bools = ['y', 'Y', 'yes', 'Yes', 'YES', 'true', 'True', 'TRUE', 'on', 'On', 'ON']
    false_bools = ['n', 'N', 'no', 'No', 'NO', 'false', 'False', 'FALSE', 'off', 'Off', 'OFF']
    if (isinstance(inc_value, str) and ('bool' in vtype)):
        if ((inc_value not in true_bools) and (inc_value not in false_bools)):
            raise YeditException('Not    a    boolean    type.    str=[{}]    vtype=[{}]'.format(inc_value, vtype))
    elif (isinstance(inc_value, bool) and ('str' in vtype)):
        inc_value = str(inc_value)
    if (isinstance(inc_value, str) and (inc_value == '')):
        pass
    elif (isinstance(inc_value, str) and ('str' not in vtype)):
        try:
            inc_value = yaml.safe_load(inc_value)
        except Exception:
            raise YeditException(('Could    not    determine    type    of    incoming    value.    ' + 'value=[{}]    vtype=[{}]'.format(type(inc_value), vtype)))
    return inc_value
