<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_flags(self, *flags):
 """Check if flags are set on this packet. returns boolean if all passed flags is set Example:: True """


        mask = sum(flags)
        return (self.bits & mask) == mask