import copy


def get_sample(inlist):
    """Return a sample of 20 records, or all records if the inlist is shorter than 20."""

    if len(inlist) > 20:
        sample = [copy.deepcopy(rec) for rec in inlist[:20]]
    else:
        sample = [copy.deepcopy(rec) for rec in inlist]

    return sample