def tmp_configuration_copy(chmod=<NUM_LIT>):
cfg_dict = conf.as_dict(display_sensitive=True, raw=True)<EOL>temp_fd, cfg_path = mkstemp()<EOL>with os.fdopen(temp_fd, '<STR_LIT:w>') as temp_file:<EOL><INDENT>if chmod is not None:<EOL><INDENT>os.fchmod(temp_fd, chmod)<EOL><DEDENT>json.dump(cfg_dict, temp_file)<EOL><DEDENT>return cfg_path<EOL>
Returns a path for a temporary file including a full copy of the configuration
settings.
:return: a path to a temporary file