code: def _change_keys_in_solver_config(cfg):
      replacements = comm._find_replacements(
          _illegal_keys, solver_config
      )
      return (
          comm._replace_keys(solver_config, replacements),
          replacements,
      )
  
file_path: optunity/wrappers/R/inst/optunity/standalone.py
imports: from __future__ import print_function
  import sys
  import keyword
  from .None import communication
  from .None import functions
  import optunity
label_desc: Use image node_id 1 for calling a global function with example usage: _change_keys_in_solver_config(cfg) and returns: comm,  replacements