code: def test_staggered():
      def testing():
          for i in pyro.markov(range(12)):
              if i % 4 == 0:
                  v2 = pyro.to_data(
                      Tensor(
                          torch.zeros(2),
                          OrderedDict([("a", funsor.Bint[2])]),
                          "real",
                      )
                  )
                  fv2 = pyro.to_funsor(v2, funsor.Real)
                  assert v2.shape == (2,)
                  print("a", v2.shape)
                  print("a", fv2.inputs)
  
      with pyro_backend("contrib.funsor"), NamedMessenger(
          first_available_dim=-1
      ):
          testing()
  
file_path: pyro/tests/contrib/funsor/test_named_handlers.py
imports: import logging
  from collections import OrderedDict
  import pytest
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: test_staggered() without return types