class_docstr: This defines an abstract base class that represents a policy for applying
  a module-level API.
docstr: This should return a dict ``target_module_to_kwargs`` that maps from
  each target module to wrap to its kwargs.
code: def _run_policy(
      self,
      root_module: nn.Module,
      ignored_modules: Set[nn.Module],
      root_kwargs: Dict[str, Any],
  ) -> Dict[nn.Module, Dict[str, Any]]:
      """
      This should return a dict ``target_module_to_kwargs`` that maps from
      each target module to wrap to its kwargs.
      """
      ...
  
imports: import contextlib
  import copy
  from abc import ABC, abstractmethod
  from typing import Any, Callable, cast, Dict, Generator, Iterable, Optional, Sequence, Set, Tuple, Type, Union
  import torch.nn
label_desc: Use image node_id 1 for calling the _Policy obj's underlying member method code with example usage: obj._run_policy(root_module, ignored_modules, root_kwargs) without return types