code: def set_env(*env_dicts):
      '''Set environment variables in the current python process from a dict
      containing envvars and values.'''
  
      old_env_dict = env_to_dict(os.environ.data)
      new_env_dict = join_dicts(old_env_dict, *env_dicts)
      new_env = dict_to_env(new_env_dict)
      replace_osenviron(expand_envvars(new_env)f set_env(*env_dicts):
      '''Set environment variables in the current python process from a dict
      containing envvars and values.'''
  
      old_env_dict = env_to_dict(os.environ.data)
      new_env_dict = join_dicts(old_env_dict, *env_dicts)
      new_env = dict_to_env(new_env_dict)
      replace_osenviron(expand_envvars(new_env))
docs: Set environment variables in the current python process from a dict
      containing envvars and values.