code: def apply_world_passing(f, a):
      return lambda w: f(w)(a(w))
  
imports: import argparse
  import collections
  import torch
  from search_inference import BestFirstSearch, HashingMarginal, memoize
  import pyro
  import pyro.distributions
label_desc: Use image node_id 7 for calling a global function with example usage: apply_world_passing(f, a) and returns: function