Li Gen is a character featured within the famed classic Chinese novel Investiture of the Gods. In the Legend of Nezha, it is recounted that Li Gen, a yaksha entrusted with guarding the sea, once served as the imperial pen of Haotian Shangdi. He consistently wielded his authority to subjugate others and was subsequently banished from Heaven.