def METHOD_NAME(passwd_value: typing.Union[str, typing.Dict[str, str]]) -> str:
    if isinstance(passwd_value, str):
        return passwd_value
    elif isinstance(passwd_value, dict):
        return METHOD_NAME(passwd_value.get("value", ""))
    else:
        # 仅有两种合法结构，如果都不满足直接返回空串
        return ""