code: def onek_encoding_unk(x, allowable_set):
      if x not in allowable_set:
          x = allowable_set[-1]
      return map(lambda s: x == s, allowable_set)
  
file_path: DIG/dig/ggraph/method/JTVAE/fast_jtnn/jtmpn.py
imports: import torch
  import torch.nn
  import torch.nn.functional
  import rdkit.Chem
  from .nnutils import create_var, index_select_ND
label_desc: Use image node_id 1 for calling a global function with example usage: onek_encoding_unk(x, allowable_set) and returns: map