code: def _recursive_format(data, replacements):
      # Data: dict or list, replacements : dict
      # Replaces string keys in replacements by their values
      # at all levels of data (in str values)
      # Works in-place.
      if isinstance(data, dict):
          for key, item in data.items():
              if isinstance(item, dict) or isinstance(item, list):
                  _recursive_format(item, replacements)
              elif isinstance(item, str):
                  data[key] = item.format_map(replacements)
              # If not dict, list or str, do nothing
      if isinstance(data, list):
          for i, item in enumerate(data):
              if isinstance(item, dict) or isinstance(item, list):
                  _recursive_format(item, replacements)
              elif isinstance(item, str):
                  data[i] = item.format_map(replacements)
  
imports: import os
  import torch
  import logging
  import numpy
  import pickle
  import hashlib
  import csv
  import time
  import torchaudio
  import json
  import re
  from speechbrain.utils.torch_audio_backend import check_torchaudio_backend
label_desc: Use image node_id 2 for calling a global function with example usage: _recursive_format(data, replacements) without return types