TypeError: fileCopyLocalRepository() takes 1 positional argument but 2 were given

Here is my code

class FileUpload():

def fileCopyLocalRepository(requiredImgFiles):
	userLocalRepo = os.mkdir(os.environ['USERPROFILE'] + "\Desktop","dummy")
	print("success")
	exit()
	for filePath in requiredImgFiles :
		print(filePath)
		destinationLocation = userLocalRepo
		try:
			shutil.copyfile(filePath, destinationLocation)
			print("File copied successfully.")
		except shutil.SameFileError: 
			print("Source and destination represents the same file.")
		except IsADirectoryError: 
			print("Destination is a directory.")
		except PermissionError: 
			print("Permission denied.")
		except: 
			print("Error occurred while copying file.")

def processStart(self):
	requiredImgFiles = []
	definedFileFormat = "**/*.txt"
	currentSystemUser = getpass.getuser()
	userSourcePath = os.getcwd() #to find the user python directory
	desiredPath = userSourcePath + "\AutomationProject"
	requiredImgFiles = [f for f in glob.glob(desiredPath + definedFileFormat, recursive=False)] #to find partiular extension file format
	self.fileCopyLocalRepository(requiredImgFiles)

def gitUserLogin(self):
	print(config.gitUserCred['userName'])
	exit()	

obj = FileUpload()
data = obj.processStart()

The error doesn’t seem to be related to PyTorch, does it?
Anyway, note that you are calling self.fileCopyLocalRepository(requiredImgFiles) in processStart, while the posted fileCopyLocalRepository method isn’t defines as a class method.
Maybe you are calling the class method with the same name?