def get_target_type_hint(val: Any) -> Any:
    if (not is_structured_config(val)):
        type_hint = self._metadata.element_type
    else:
        target = self._get_node(key)
        if (target is None):
            type_hint = self._metadata.element_type
        else:
            assert isinstance(target, Node)
            type_hint = target._metadata.type_hint
    return type_hint
def get_target_type_hint(val: Any) -> Any:
    if (not is_structured_config(val)):
        type_hint = self._metadata.element_type
    else:
        target = self._get_node(key)
        if (target is None):
            type_hint = self._metadata.element_type
        else:
            assert isinstance(target, Node)
            type_hint = target._metadata.type_hint
    return type_hint