code: def test_warning_tuple(self) -> None:
      pytest.warns(
          (RuntimeWarning, SyntaxWarning),
          lambda: warnings.warn("w1", RuntimeWarning),
      )
      pytest.warns(
          (RuntimeWarning, SyntaxWarning),
          lambda: warnings.warn("w2", SyntaxWarning),
      )
      with pytest.warns():
          pytest.raises(
              pytest.fail.Exception,
              lambda: pytest.warns(
                  (RuntimeWarning, SyntaxWarning),
                  lambda: warnings.warn("w3", UserWarning),
              ),
          )
  
imports: import warnings
  from typing import List
  from typing import Optional
  from typing import Type
  import pytest
  from _pytest.pytester import Pytester
  from _pytest.recwarn import WarningsRecorder
label_desc: Use image node_id 4 for calling the TestWarns obj's underlying member method code with example usage: obj.test_warning_tuple() without return types