code: def test_experimental_method(args, kwargs):
      instance = Class()
      with pytest.warns(
          ExperimentalWarning,
          match=r"^Class\.method is experimental: method is experimental\.",
      ):
          ret = instance.method(*args, **kwargs)
  
      assert ret[0] is instance
      assert ret[1:] == (args, kwargs)
  
file_path: stellargraph/tests/core/test_experimental.py
imports: import pytest
  import random
  from stellargraph.core.experimental import experimental, ExperimentalWarning
label_desc: Use image node_id 6 for calling a global function with example usage: test_experimental_method(args, kwargs) without return types