code: def flip(name, p):
      return pyro.sample(name, dist.Bernoulli(p)).item() == 1
  
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 2 for calling a global function with example usage: flip(name, p) and returns: unknown