code: def onek_encoding_unk(x, allowable_set):
      if x not in allowable_set:
          x = allowable_set[-1]
      return [x == s for s in allowable_set]
  
imports: import dgl
  import dgl.function
  import rdkit.Chem
  import torch
  import torch.nn
  import torch.nn.functional
  from dgl import line_graph, mean_nodes
  from .chemutils import get_mol
label_desc: Use image node_id 1 for calling a global function with example usage: onek_encoding_unk(x, allowable_set) and returns: unknown