code: def register_case(labels):
      def wrapper(fn):
          for lbl in labels:
              case_registry[lbl].append(fn)
          fn.__labels__ = labels
          return fn
  
      return wrapper
  
imports: from collections import defaultdict
  import backend
  import dgl
  import networkx
  import numpy
  import scipy.sparse
label_desc: Use image node_id 1 for calling a global function with example usage: register_case(labels) and returns: wrapper, fn