<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def receive(socket, num_bytes=20):
 """Receive data frame from open socket. :param socket: open socket instance :param num_bytes: number of bytes to read :return: received data """

    length = int(_receive_all(socket, num_bytes).decode())
    serialized_data = _receive_all(socket, length)
    return pickle.loads(serialized_data)