class_docstr: Class determine the main operations for parameters search
  like finding all changing parameters.
  
  Args:
      prefix: prefix to determine special keys like "`prefix`_range", "`prefix`_bool", "`prefix`_choice"
      seed: random seed for initialization
      **kwargs: basic config with parameters
  
  Attributes:
      basic_config: dictionary with initial config with possible values of searched parameters
      prefix: prefix to determine special keys like "`prefix`_range", "`prefix`_bool", "`prefix`_choice"
      paths_to_params: list of lists of keys and/or integers (for list)
              with relative paths to searched parameters
      n_params: number of searched parameters
      eps: threshold value
docstr: Insert value to dictionary determined by path[:-1] in field with key path[-1]
  
  Args:
      config: dictionary
      path: list of keys and/or integers (for list)
      value: value to be inserted
  
  Returns:
      config with inserted value
docstr_tok: ["Insert","value","to","dictionary","determined","by","path","[",":","-1","]","in","field","with","key","path","[","-1","]","Args",":","config",":","dictionary","path",":","list","of","keys","and\/or","integers","(","for","list",")","value",":","value","to","be","inserted","Returns",":","config","with","inserted","value"]
code: def insert_value_or_dict_into_config(
      config: dict,
      path: list,
      value: [int, float, str, bool, list, dict, np.ndarray],
  ) -> None:
      """
      Insert value to dictionary determined by path[:-1] in field with key path[-1]
  
      Args:
          config: dictionary
          path: list of keys and/or integers (for list)
          value: value to be inserted
  
      Returns:
          config with inserted value
      """
      config_pointer = config
      for el in path[:-1]:
          if isinstance(config_pointer, dict):
              config_pointer = config_pointer.setdefault(el, {})
          elif isinstance(config_pointer, list):
              config_pointer = config_pointer[el]
          else:
              pass
      config_pointer[path[-1]] = value
  
file_path: DeepPavlov/deeppavlov/core/common/params_search.py
imports: import random
  from copy import deepcopy
  from logging import getLogger
  from typing import List, Generator, Any, Tuple
  import numpy
  from deeppavlov.core.common.registry import register
label_desc: Use image node_id 3 for calling the ParamsSearch obj's underlying member method code with example usage: obj.insert_value_or_dict_into_config(config, path, value) without return types