docstr: Test setting, getting, and deleting tracked_optimizers
docstr_tok: ["Test","setting",",","getting",",","and","deleting","tracked_optimizers"]
code: def test_tracked_optimizers(self) -> None:
      """
      Test setting, getting, and deleting tracked_optimizers
      """
      my_unit = Dummy()
  
      # assert that the attribute is stored in tracked_optimizers
      self.assertEqual(
          my_unit.tracked_optimizers()["optimizer_c"],
          my_unit.optimizer_c,
      )
  
      # delete the attribute
      # pyre-fixme[8]: Attribute has type `SGD`; used as `None`.
      my_unit.optimizer_c = None
  
      # the attribute should be removed from tracked_optimizers
      self.assertFalse("optimizer_c" in my_unit.tracked_optimizers())
  
imports: import unittest
  from typing import Any, Dict
  from unittest.mock import patch
  import torch
  from torch import nn
  from torchtnt.framework._test_utils import DummyAutoUnit
  from torchtnt.framework.unit import AppStateMixin
  from torchtnt.utils.env import init_from_env
  from torchtnt.utils.lr_scheduler import TLRScheduler
  from torchtnt.utils.prepare_module import FSDPOptimizerWrapper
label_desc: Use image node_id 2 for calling the AppStateMixinTest obj's underlying member method code with example usage: obj.test_tracked_optimizers() without return types