code: def add_imports(doctest_namespace):
      doctest_namespace["dist"] = dist
      doctest_namespace["gp"] = gp
      doctest_namespace["named"] = named
      doctest_namespace["np"] = numpy
      doctest_namespace[
          "param_with_module_name"
      ] = param_with_module_name
      doctest_namespace["poutine"] = poutine
      doctest_namespace["pyro"] = pyro
      doctest_namespace["torch"] = torch
      doctest_namespace["EmpiricalMarginal"] = EmpiricalMarginal
      doctest_namespace["HMC"] = HMC
      doctest_namespace["MCMC"] = MCMC
      doctest_namespace["NUTS"] = NUTS
  
file_path: pyro/tests/doctest_fixtures.py
imports: import numpy
  import pytest
  import torch
  import pyro
  import pyro.contrib.autoname.named
  import pyro.contrib.gp
  import pyro.distributions
  import pyro.poutine
  from pyro.infer import EmpiricalMarginal
  from pyro.infer.mcmc import HMC, NUTS
  from pyro.infer.mcmc.api import MCMC
  from pyro.params import param_with_module_name
label_desc: Use image node_id 1 for calling a global function with example usage: add_imports(doctest_namespace) without return types