code: def plate_custom_model(subsample):
      with pyro.plate("plate", 20, subsample=subsample) as batch:
          result = batch
      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 7 for calling a global function with example usage: plate_custom_model(subsample) and returns: result