docstr: Tests ignoring different modules across ranks.
  
  Args:
      pass_ignored_modules_to_root (bool): If ``False``, does not pass
          any ignored modules (including those already ignored in child
          FSDP instances) to the root FSDP instance; if ``True``, passes
          all ignored modules (representing a superset of the children's
          ignored modules) to the root FSDP instance.
docstr_tok: ["Tests","ignoring","different","modules","across","ranks",".","Args",":","pass_ignored_modules_to_root","(","bool",")",":","If","``","False","``",",","does","not","pass","any","ignored","modules","(","including","those","already","ignored","in","child","FSDP","instances",")","to","the","root","FSDP","instance",";","if","``","True","``",",","passes","all","ignored","modules","(","representing","a","superset","of","the","children's","ignored","modules",")","to","the","root","FSDP","instance","."]
code: def test_diff_ignored_modules_across_ranks(self):
      """
      Tests ignoring different modules across ranks.
  
      Args:
          pass_ignored_modules_to_root (bool): If ``False``, does not pass
              any ignored modules (including those already ignored in child
              FSDP instances) to the root FSDP instance; if ``True``, passes
              all ignored modules (representing a superset of the children's
              ignored modules) to the root FSDP instance.
      """
      self.run_subtests(
          {
              "pass_ignored_modules_to_root": [False, True],
              "ignore_modules": [True, False],
              "composable": [True, False],
          },
          self._test_diff_ignored_modules_across_ranks,
      )
  
imports: import functools
  import math
  import sys
  import torch
  import torch.distributed.fsdp._traversal_utils
  import torch.nn
  from torch import distributed
  from torch.distributed._composable import fully_shard
  from torch.distributed.fsdp import FullyShardedDataParallel
  from torch.distributed.fsdp._common_utils import _get_module_fsdp_state
  from torch.distributed.fsdp.wrap import ModuleWrapPolicy, transformer_auto_wrap_policy
  from torch.testing._internal.common_distributed import skip_if_lt_x_gpu
  from torch.testing._internal.common_fsdp import CUDAInitMode, FSDPInitMode, FSDPTest, TransformerWithSharedParams
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TEST_WITH_DEV_DBG_ASAN
label_desc: Use image node_id 12 for calling the TestFSDPIgnoredModules obj's underlying member method code with example usage: obj.test_diff_ignored_modules_across_ranks() without return types