import random


def get_test_data(test_data):
    """Get test data from csv dataframe and pick a random record to convert to Dict."""
    input_data = test_data.to_dict(orient='records')

    return random.sample(input_data, 1)[0]