def substitute_globals(config_dict):
constants = get_all_constants()<EOL>if type(config_dict) != dict:<EOL><INDENT>return<EOL><DEDENT>for key in config_dict:<EOL><INDENT>if key in constants and type(config_dict[key]) in _ALLOWED:<EOL><INDENT>globals()[key] = config_dict[key]<EOL><DEDENT><DEDENT>
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.