code: def test_convert_positional_args_future_warning_for_methods() -> None:
      simple_class = _SimpleClass()
      with pytest.warns(FutureWarning) as record:
          simple_class.simple_method(1, 2, c=3)  # type: ignore
          simple_class.simple_method(1, b=2, c=3)  # No warning.
          simple_class.simple_method(a=1, b=2, c=3)  # No warning.
  
      assert len(record) == 1
      for warn in record.list:
          assert isinstance(warn.message, FutureWarning)
          assert "simple_method" in str(warn.message)
  
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 3 for calling a global function with example usage: test_convert_positional_args_future_warning_for_methods() without return types