code: def threshold_prior():
      threshold_bins = [
          0.0,
          0.1,
          0.2,
          0.3,
          0.4,
          0.5,
          0.6,
          0.7,
          0.8,
          0.9,
      ]
      ix = pyro.sample(
          "threshold",
          dist.Categorical(logits=torch.zeros(len(threshold_bins))),
      )
      return threshold_bins[ix]
  
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 4 for calling a global function with example usage: threshold_prior() and returns: threshold_bins