code: def test_convert_positional_args_invalid_previous_positional_arg_names(
      previous_positional_arg_names: List[str], raise_error: bool
  ) -> None:
      decorator_converter = convert_positional_args(
          previous_positional_arg_names=previous_positional_arg_names
      )
      assert callable(decorator_converter)
  
      if raise_error:
          with pytest.raises(AssertionError) as record:
              decorator_converter(_sample_func)
          res = re.findall(r"({.+?}|set\(\))", str(record.value))
          assert len(res) == 2
          assert eval(res[0]) == set(previous_positional_arg_names)
          assert eval(res[1]) == set(["a", "b", "c"])
      else:
          decorator_converter(_sample_func)
  
file_path: optuna/tests/test_convert_positional_args.py
imports: import re
  from typing import List
  import pytest
  from optuna._convert_positional_args import convert_positional_args
label_desc: Use image node_id 6 for calling a global function with example usage: test_convert_positional_args_invalid_previous_positional_arg_names(previous_positional_arg_names, raise_error) without return types