def is_empty(obj):
    if obj is None:
        return True
    if isinstance(obj, str):
        if len(obj) == 0 or obj.isspace():
            return True
    return False


def empty_convert_none(s1: str):
    if is_empty(s1):
        return None
    return s1

4eca629e63cbec0a8e9e35431728682f3cd45794
<mask token>

def is_empty(obj):
    if obj is None:
        return True
    if isinstance(obj, str):
        if len(obj) == 0 or obj.isspace():
            return True
    return False


<mask token>

def is_empty(obj):
    if obj is None:
        return True
    if isinstance(obj, str):
        if len(obj) == 0 or obj.isspace():
            return True
    return False


def empty_convert_none(s1: str):
    if is_empty(s1):
        return None
    return s1
