code: def test_cond_indep_stack(model, subsample_size):
      tr = poutine.trace(model).get_trace(subsample_size)
      for name, node in tr.nodes.items():
          if name.startswith("x"):
              assert node[
                  "cond_indep_stack"
              ], "missing cond_indep_stack at node {}".format(name)
  
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 5 for calling a global function with example usage: test_cond_indep_stack(model, subsample_size) without return types