code: def invocation_path(self, pytester: Pytester) -> Path:
      pytester.syspathinsert(pytester.path / "src")
      pytester.chdir()
  
      pkg = pytester.path.joinpath("src/pkg")
      pkg.mkdir(parents=True)
      pkg.joinpath("__init__.py").touch()
      pkg.joinpath("test.py").touch()
      return pytester.path
  
imports: import argparse
  import os
  import re
  import sys
  from pathlib import Path
  from typing import Optional
  import pytest
  from _pytest.config import ExitCode
  from _pytest.config import UsageError
  from _pytest.main import resolve_collection_argument
  from _pytest.main import validate_basetemp
  from _pytest.pytester import Pytester
label_desc: Use image node_id 1 for calling the TestResolveCollectionArgument obj's underlying member method code with example usage: obj.invocation_path(pytester) and returns: pytester