code: def nic_b(msg):
      
      tc = typecode(msg)
  
      if tc < 9 or tc > 18:
          raise RuntimeError("%s: Not a airborne position message, expecting 8<TC<19" % msg)
  
      msgbin = common.hex2bin(msg)
      nic_b = int(msgbin[39])
  
      return nic_b
docs: Obtain NICb, navigation integrity category supplement-b
  
      Args:
          msg (string): 28 bytes hexadecimal message string
  
      Returns:
          int: NICb number (0 or 1)