def _create_any_param_or_result(self, parent_node, name, type_name, instance, constructor,<EOL>args, kwargs):
root = self._root_instance<EOL>full_name = self._make_full_name(parent_node.v_full_name, name)<EOL>if instance is None:<EOL><INDENT>if constructor is None:<EOL><INDENT>if type_name == RESULT:<EOL><INDENT>constructor = root._standard_result<EOL><DEDENT>elif type_name in [PARAMETER, CONFIG, DERIVED_PARAMETER]:<EOL><INDENT>constructor = root._standard_parameter<EOL><DEDENT>else:<EOL><INDENT>constructor = root._standard_leaf<EOL><DEDENT><DEDENT>instance = root._construct_instance(constructor, full_name, *args, **kwargs)<EOL><DEDENT>else:<EOL><INDENT>instance._rename(full_name)<EOL><DEDENT>self._set_details_tree_node(parent_node, name, instance)<EOL>where_dict = self._map_type_to_dict(type_name)<EOL>full_name = instance._full_name<EOL>if full_name in where_dict:<EOL><INDENT>raise AttributeError(full_name + '<STR_LIT>')<EOL><DEDENT>if type_name != RESULT and full_name in root._changed_default_parameters:<EOL><INDENT>self._logger.info(<EOL>'<STR_LIT>' %<EOL>full_name)<EOL>change_args, change_kwargs = root._changed_default_parameters.pop(full_name)<EOL>instance.f_set(*change_args, **change_kwargs)<EOL><DEDENT>where_dict[full_name] = instance<EOL>self._add_to_nodes_and_leaves(instance)<EOL>parent_node._children[name] = instance<EOL>parent_node._leaves[name] = instance<EOL>if full_name in self._root_instance._explored_parameters:<EOL><INDENT>instance._explored = True  <EOL>self._root_instance._explored_parameters[full_name] = instance<EOL><DEDENT>self._logger.debug('<STR_LIT>' % full_name)<EOL>return instance<EOL>
Generically creates a novel parameter or result instance inferring from the `type_name`.

        If the instance is already supplied it is NOT constructed new.

        :param parent_node:

            Parent trajectory node

        :param name:

            Name of the new result or parameter. Here the name no longer contains colons.

        :param type_name:

            Whether it is a parameter below parameters, config, derived parameters or whether
            it is a result.

        :param instance:

            The instance if it has been constructed somewhere else, otherwise None.

        :param constructor:

            A constructor used if instance needs to be constructed. If None the current standard
            constructor is chosen.

        :param args:

            Additional arguments passed to the constructor

        :param kwargs:

            Additional keyword arguments passed to the constructor

        :return: The new instance