code: def _latent(base, parent):
      return _make_cls(
          base,
          {"collapsible": True},
          {"site_name": None, "parent": parent},
          "_latent",
      )
  
imports: from collections import defaultdict
  import torch
  import pyro.distributions
  from pyro import poutine
  from pyro.distributions.util import sum_leftmost
  from pyro.poutine.messenger import Messenger
  from pyro.poutine.util import site_is_subsample
label_desc: Use image node_id 2 for calling a global function with example usage: _latent(base, parent) and returns: _make_cls