<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create(self, name, data=None):
 """Creates a new packet with the given definition and raw data. """

        return createPacket(self[name], data) if name in self else None