class_docstr: Sometimes-active cache for ``PyroModule.__call__()`` contexts.
class_docstr_tok: ["Sometimes-active","cache","for","``","PyroModule.__call__","(",")","``","contexts","."]
code: def __enter__(self):
      if not self.active and _is_module_local_param_enabled():
          self._param_ctx = pyro.get_param_store().scope(
              state=self.param_state
          )
          self.param_state = self._param_ctx.__enter__()
      self.active += 1
      self.used = True
  
imports: import functools
  import inspect
  import weakref
  from collections import OrderedDict, namedtuple
  import torch
  from torch.distributions import constraints, transform_to
  import pyro
  from pyro.ops.provenance import detach_provenance
  from pyro.poutine.runtime import _PYRO_PARAM_STORE
label_desc: Use image node_id 2 for calling the _Context obj's underlying member method code with example usage: obj.__enter__() without return types