code: def _FormatInAddrExToken(self, token_data):
      
      protocol = bsmtoken.BSM_PROTOCOLS.get(token_data.net_type, 'UNKNOWN')
      if token_data.net_type == 4:
        ip_address = self._FormatPackedIPv6Address(token_data.ip_address[:4])
      elif token_data.net_type == 16:
        ip_address = self._FormatPackedIPv6Address(token_data.ip_address)
      return {
          'protocols': protocol,
          'net_type': token_data.net_type,
          'address': ip_address}
docs: Formats an extended IPv4 address token as a dictionary of values.
  
      Args:
        token_data (bsm_token_data_in_addr_ex): AUT_IN_ADDR_EX token data.
  
      Returns:
        dict[str, str]: token values.