import random


def draw_categorical_sample(param):
    """
    Function draws a random sample from a categorical list

    :param param: [dict] input hyperparameter discription

    :return: random sample value of type data['type']
    """
    return random.sample(param['data'], 1)[0]