code: def normalize_or_die(obj):
      if isinstance(obj, dict):
          res = dict()
          for key, value in obj.items():
              assert_is_valid_key(key)
              res[key] = normalize_or_die(value)
          return res
      elif isinstance(obj, (list, tuple)):
          return list([normalize_or_die(value) for value in obj])
      return normalize_numpy(obj)
  
file_path: sacred/sacred/config/utils.py
imports: import jsonpickle.tags
  from sacred import SETTINGS
  import sacred.optional
  from sacred.config.custom_containers import DogmaticDict, DogmaticList
  from sacred.utils import PYTHON_IDENTIFIER
label_desc: Use image node_id 3 for calling a global function with example usage: normalize_or_die(obj) and returns: normalize_numpy, res, list