code: def make_orderer():
      order = {}
  
      def ordered(f):
          order[f.__name__] = len(order)
          return f
  
      def compare(a, b):
          return [1, -1][order[a] < order[b]]
  
      return ordered, compare
  
file_path: nylon/tests/tests.py
imports: import os, sys
  from nylon.query import Polymer
  import unittest
label_desc: Use image node_id 1 for calling a global function with example usage: make_orderer() and returns: ordered,  compare, f, list