code: def test_trace_with_parametrize_handles_shared_fixtureinfo(
      self, pytester: Pytester
  ) -> None:
      p1 = pytester.makepyfile(
          """
              import pytest
              @pytest.mark.parametrize('myparam', [1,2])
              def test_1(myparam, request):
                  assert myparam in (1, 2)
                  assert request.function.__name__ == "test_1"
              @pytest.mark.parametrize('func', [1,2])
              def test_func(func, request):
                  assert func in (1, 2)
                  assert request.function.__name__ == "test_func"
              @pytest.mark.parametrize('myparam', [1,2])
              def test_func_kw(myparam, request, func="func_kw"):
                  assert myparam in (1, 2)
                  assert func == "func_kw"
                  assert request.function.__name__ == "test_func_kw"
              """
      )
      child = pytester.spawn_pytest("--trace " + str(p1))
      for func, argname in [
          ("test_1", "myparam"),
          ("test_func", "func"),
          ("test_func_kw", "myparam"),
      ]:
          child.expect_exact(
              "> PDB runcall (IO-capturing turned off) >"
          )
          child.expect_exact(func)
          child.expect_exact("Pdb")
          child.sendline("args")
          child.expect_exact(f"{argname} = 1\r\n")
          child.expect_exact("Pdb")
          child.sendline("c")
          child.expect_exact("Pdb")
          child.sendline("args")
          child.expect_exact(f"{argname} = 2\r\n")
          child.expect_exact("Pdb")
          child.sendline("c")
          child.expect_exact("> PDB continue (IO-capturing resumed) >")
      rest = child.read().decode("utf8")
      assert "= 6 passed in" in rest
      assert "reading from stdin while output" not in rest
      # Only printed once - not on stderr.
      assert "Exit: Quitting debugger" not in child.before.decode(
          "utf8"
      )
      TestPDB.flush(child)
  
imports: import os
  import sys
  from typing import List
  import _pytest._code
  import pytest
  from _pytest.debugging import _validate_usepdb_cls
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import Pytester
label_desc: Use image node_id 2 for calling the TestTraceOption obj's underlying member method code with example usage: obj.test_trace_with_parametrize_handles_shared_fixtureinfo(pytester) without return types