code: def test_custom_subsample(model):
      pyro.set_rng_seed(0)
  
      subsample = [1, 3, 5, 7]
      assert model(subsample) == subsample
      assert poutine.trace(model)(subsample) == subsample
  
file_path: pyro/tests/poutine/test_mapdata.py
imports: import logging
  import pytest
  import torch
  import pyro
  import pyro.distributions
  import pyro.poutine
  from tests.common import requires_cuda
label_desc: Use image node_id 9 for calling a global function with example usage: test_custom_subsample(model) without return types