def _require_unicode(name, value):

    if not isinstance(value, str_cls):
        raise TypeError('%s must be a unicode string, not %s' % (name, _type_name(value)))
Requires that a parameter be a unicode string
dataset/ETHPy150Open golang/sublime-config/all/golangconfig.py/_require_unicode