code: def substitute_globals(config_dict):
      
      constants = get_all_constants()
  
      if type(config_dict) != dict:
          return
  
      for key in config_dict.keys():
          if key in constants and type(config_dict[key]) in _ALLOWED:
              globals()[key] = config_dict[key]
docs: Set global variables to values defined in `config_dict`.
  
      Args:
          config_dict (dict): dictionary with data, which are used to set \
                              `globals`.
  
      Note:
          `config_dict` have to be dictionary, or it is ignored. Also all
          variables, that are not already in globals, or are not types defined in
          :attr:`_ALLOWED` (str, int, float) or starts with ``_`` are silently
          ignored.