code: def listener1(utterance, prior):
      state = pyro.sample("state", prior)
      threshold = threshold_prior()
      S1 = speaker1(state, threshold, prior)
      pyro.sample("S1_score", S1, obs=utterance)
      return state
  
file_path: pyro/examples/rsa/generics.py
imports: import argparse
  import collections
  import numbers
  import torch
  from search_inference import HashingMarginal, Search, memoize
  import pyro
  import pyro.distributions
  import pyro.poutine
label_desc: Use image node_id 9 for calling a global function with example usage: listener1(utterance, prior) and returns: state