import random


def _downsample_list(full_list, num_samples):
    """Returns a down-sampled list with a given number of samples.

    Args:
        full_list: A list to down-sample.
        num_samples: The number of elements from full_list to keep.

    Returns:
        A list with length of num_samples.
    """
    if len(full_list) > num_samples:  # make sure we dont try over sample
        num_samples = len(full_list)

    return random.sample(full_list, k=num_samples)