<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def random_product(*args, **kwds):
 """Draw an item at random from each of the input iterables. ('c', 3, 'Z') If *repeat* is provided as a keyword argument, that many items will be drawn from each iterable. ('a', 2, 'd', 3) This equivalent to taking a random selection from ``itertools.product(*args, **kwarg)``. """

    pools = [tuple(pool) for pool in args] * kwds.get('repeat', 1)
    return tuple(choice(pool) for pool in pools)