def simulate_predictions(endpoint, deployed_model, input_data, ground_truth, col_name, ground_truth_delay):
# ground_truth_delay is delay in seconds between prediction & GT becoming available
for i, row in input_data.iterrows():
_id, _ = deployed_model.predict_with_id([row.tolist()])
time.sleep(ground_truth_delay)
id_and_gt = zip(ids, ground_truth)
endpoint.log_ground_truth(t[0], [t[1]], col_name) # id, gt, prediction_col_name