code: def heuristic(is_good):
      if is_good:
          return torch.tensor(0.0)
      return torch.tensor(-100.0)
  
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 4 for calling a global function with example usage: heuristic(is_good) and returns: torch, torch