def METHOD_NAME(
		repoRoot: str,
		settingsFileName: str,
		stagingDir: str,
		gesturesFileName: Optional[str] = None,
):
	builtIn.log("Copying files into NVDA profile", level='DEBUG')
	opSys.copy_file(
		# Despite duplication, specify full paths for clarity.
		_pJoin(repoRoot, "tests", "system", "nvdaSettingsFiles", settingsFileName),
		_pJoin(stagingDir, "nvdaProfile", "nvda.ini")
	)
	if gesturesFileName is not None:
		opSys.copy_file(
			# Despite duplication, specify full paths for clarity.
			_pJoin(repoRoot, "tests", "system", "nvdaSettingsFiles", gesturesFileName),
			_pJoin(stagingDir, "nvdaProfile", "gestures.ini")
		)
	# create a package to use as the globalPlugin
	_installSystemTestSpyToScratchPad(
		repoRoot,
		_pJoin(stagingDir, "nvdaProfile", "scratchpad")
	)