code: def test_vw_config_manager():
      expected_set = {
          "--no_stdin",
          "--quiet",
          "--loss_function=logistic",
          "--data=test/train-sets/rcv1_small.dat",
      }
      expected_reductions = {"gd", "scorer-identity", "count_label"}
  
      vw = vowpalwabbit.Workspace(
          arg_str="--loss_function logistic -d test/train-sets/rcv1_small.dat --quiet"
      )
      config = vw.get_config()
      enabled_reductions = vw.get_enabled_reductions()
  
      cmd_str_list = helper_options_to_list_strings(config)
      assert set(cmd_str_list) == expected_set
      assert set(enabled_reductions) == expected_reductions
  
      vw.finish()
  
      # do another iteration generating the cmd string from the output of previous
      new_args = " ".join(cmd_str_list)
  
      other_vw = vowpalwabbit.Workspace(new_args)
      new_config = vw.get_config()
      new_cmd_str_list = helper_options_to_list_strings(new_config)
  
      assert set(new_cmd_str_list) == expected_set
  
      other_vw.finish()
  
imports: from vowpalwabbit import pyvw
  import vowpalwabbit
label_desc: Use image node_id 2 for calling a global function with example usage: test_vw_config_manager() without return types