code: def valence_prior(price):
      probs = {
          50: 0.3173,
          51: 0.3173,
          500: 0.7920,
          501: 0.7920,
          1000: 0.8933,
          1001: 0.8933,
          5000: 0.9524,
          5001: 0.9524,
          10000: 0.9864,
          10001: 0.9864,
      }
      return (
          pyro.sample(
              "valence", dist.Bernoulli(probs=probs[price])
          ).item()
          == 1
      )
  
file_path: pyro/examples/rsa/hyperbole.py
imports: import argparse
  import collections
  import torch
  from search_inference import HashingMarginal, Search, memoize
  import pyro
  import pyro.distributions
  import pyro.poutine
label_desc: Use image node_id 4 for calling a global function with example usage: valence_prior(price) and returns: unknown