code: def iplate_custom_model(subsample):
      result = []
      for i in pyro.plate("plate", 20, subsample=subsample):
          result.append(i)
      return result
  
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 8 for calling a global function with example usage: iplate_custom_model(subsample) and returns: result