code: def _overwrite(data: Any, value: Any, nested_keys: list) -> None:
      """Changes ``data`` nested key value to ``value`` using ``nested_keys`` as nested keys list.
  
      Example:
          >>> x = {'a': [None, {'b': 2}]}
          >>> _overwrite(x, 42, ['a', 1, 'b'])
          >>> x
          {'a': [None, {'b': 42}]}
  
      """
      key = nested_keys.pop(0)
      if not nested_keys:
          data[key] = value
      else:
          _overwrite(data[key], value, nested_keys)
  
file_path: DeepPavlov/deeppavlov/core/commands/utils.py
imports: import os
  from copy import deepcopy
  from pathlib import Path
  from typing import Any, Union, Dict, TypeVar, Optional
  from deeppavlov.core.common.file import read_json, find_config
  from deeppavlov.core.common.registry import inverted_registry
  from deeppavlov.core.data.utils import get_all_elems_from_json
label_desc: Use image node_id 4 for calling a global function with example usage: _overwrite(data, value, nested_keys) without return types