def METHOD_NAME(self, name, value_ros):
    value = None
    if value_ros.type == ParameterType.PARAMETER_NOT_SET:
        pass
    elif value_ros.type == ParameterType.PARAMETER_BOOL:
        value = value_ros.bool_value
    elif value_ros.type == ParameterType.PARAMETER_INTEGER:
        value = value_ros.integer_value
    elif value_ros.type == ParameterType.PARAMETER_DOUBLE:
        value = value_ros.double_value
    elif value_ros.type == ParameterType.PARAMETER_BYTE_ARRAY:
        value = value_ros.byte_array_value
    elif value_ros.type == ParameterType.PARAMETER_BOOL_ARRAY:
        value = value_ros.bool_array_value
    elif value_ros.type == ParameterType.PARAMETER_INTEGER_ARRAY:
        value = value_ros.integer_array_value
    elif value_ros.type == ParameterType.PARAMETER_DOUBLE_ARRAY:
        value = value_ros.double_array_value
    names = name.split(".")
    tree = globals()
    for prefix in names[:-1]:
        if prefix not in tree:
            tree[prefix] = ParamTreeNode()
        tree = tree[prefix].__dict__
    tree[names[-1]] = value