code: def gen_category(cats):
      for i in range(0, 0x110000):
          if unicodedata.category(chr(i)) in cats:
              yield (i)
  
imports: import re
  from unicodedata import ucd_3_2_0
label_desc: Use image node_id 1 for calling a global function with example usage: gen_category(cats) without return types