code: def location(preference):
      """
      Flips a weighted coin to decide between two locations to meet.
      In this example, we assume that Alice and Bob share a prior preference
      for one location over another, reflected in the value of preference below.
      """
      return pyro.sample("loc", Bernoulli(preference))
  
file_path: pyro/examples/rsa/schelling_false.py
imports: import argparse
  import torch
  from search_inference import HashingMarginal, Search
  import pyro
  import pyro.poutine
  from pyro.distributions import Bernoulli
label_desc: Use image node_id 1 for calling a global function with example usage: location(preference) and returns: pyro