code: def convert(
      dico, exclude_keys=["models", "optimizer"], depth=0, verbose=True
  ):
      if isinstance(dico, dict):
          for k, v in dico.items():
              if k not in exclude_keys:
                  print(depth * " ", k, type(v))
                  convert(v, depth=depth + 1)
                  if isinstance(v, omegaconf.dictconfig.DictConfig):
                      dico[k] = OmegaConf.to_container(v)
  
      elif isinstance(dico, list):
          for i, v in enumerate(dico):
              print(depth * " ", i, type(v))
              convert(v, depth=depth + 1)
              if isinstance(v, omegaconf.dictconfig.DictConfig):
                  dico[i] = OmegaConf.to_container(v)
  
imports: import argparse
  import os
  import os.path
  import torch
  from omegaconf import OmegaConf
  import omegaconf
label_desc: Use image node_id 2 for calling a global function with example usage: convert(dico, exclude_keys, depth, verbose) without return types