<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pluck(col, key, default=None):
 """ Extracts a list of values from a collection of dictionaries ['moe', 'larry', 'curly'] It only works with collections Traceback (most recent call last):
 RuntimeError: First argument must be a list or tuple """

    if not (is_list(col) or is_tuple(col)):
        fail("First argument must be a list or tuple")

    def _block(dct):
        if not is_dict(dct):
            return []
        return dct.get(key, default)

    return map(_block, col)