code: def get_nested_dict_value(dictionary: dict, key: str):
      """
      the key should be a string of nested keys separated by `.`, e.g. `key1.key2.key3`,
      then the returned value will be `dictionary[key1][key2][key3]`
      """
      nested_keys = key.split(".")
      result = dictionary
      for k in nested_keys:
          if k not in result:
              raise KeyError(
                  f"Key `{key}` not found in [{result.keys()}], target is {nested_keys}, input is {dictionary}"
              )
          result = result[k]
      return result
  
file_path: NeMo/scripts/tokenizers/get_hf_text_data.py
imports: import os
  from itertools import repeat
  from multiprocessing import Pool
  from pathlib import Path
  import datasets
  from omegaconf import OmegaConf, open_dict
  from nemo.core.config import hydra_runner
  from nemo.utils import logging
label_desc: Use image node_id 2 for calling a global function with example usage: get_nested_dict_value(dictionary, key) and returns: result