docstr: Tests that passing a module with nested FSDP modules does not
  error and still ignores non-FSDP modules' parameters.
docstr_tok: ["Tests","that","passing","a","module","with","nested","FSDP","modules","does","not","error","and","still","ignores","non-FSDP","modules","'","parameters","."]
code: def test_ignored_modules_nested(self):
      """Tests that passing a module with nested FSDP modules does not
      error and still ignores non-FSDP modules' parameters."""
      self.run_subtests(
          {
              "use_orig_params": [False, True],
              "ignore_modules": [True, False],
              "composable": [False],
          },
          self._test_ignored_modules_nested,
      )
  
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 6 for calling the TestFSDPIgnoredModules obj's underlying member method code with example usage: obj.test_ignored_modules_nested() without return types