hi , i want to select randomly faces from test dataset anfter trained training folder of faces
i use facenet-pytorch library
optimizer = optim.Adam(resnet.parameters(), lr=0.001)
scheduler = MultiStepLR(optimizer, [5, 10])

trans = transforms.Compose([
   np.float32,
   transforms.ToTensor(),
   fixed_image_standardization
]) 
dataset = datasets.ImageFolder(data_dir, transform=trans)
img_inds = np.arange(len(dataset)) 
np.random.shuffle(img_inds)
train_inds = img_inds[:int(0.8 * len(img_inds))]
val_inds = img_inds[int(0.8 * len(img_inds)):]

train_loader = DataLoader(
   dataset,
   num_workers=workers,
   batch_size=batch_size,
   sampler=SubsetRandomSampler(train_inds)
)
val_loader = DataLoader(
val_inds,
batch_size=batch_size,
shuffle = True,
num_workers=workers,
)

how to select a face randomly in test data set to make prediction ?
the result of the code provide this error

val_inds,
^
SyntaxError: positional argument follows keyword argument

thanks