code: def frag_check(*args, protocol, func=None):
      
      func = func or inspect.stack()[2][3]
      if 'IP' in protocol:
          _ip_frag_check(*args, func=func)
      elif 'TCP' in protocol:
          _tcp_frag_check(*args, func=func)
      else:
          raise FragmentError(f'Unknown fragmented protocol {protocol}.')
docs: Check if arguments are valid fragments.