code: def pkt_check(*args, func=None):
      
      func = func or inspect.stack()[2][3]
      for var in args:
          dict_check(var, func=func)
          dict_check(var.get('frame'), func=func)
          enum_check(var.get('protocol'), func=func)
          real_check(var.get('timestamp'), func=func)
          ip_check(var.get('src'), var.get('dst'), func=func)
          bool_check(var.get('syn'), var.get('fin'), func=func)
          int_check(var.get('srcport'), var.get('dstport'), var.get('index'), func=func)
docs: Check if arguments are valid packets.