code: def test_optimizer_factory(self):
      model = torch.nn.Linear(2, 2)
  
      adam, sched = ImplicitronOptimizerFactory(breed="Adam")(0, model)
      self.assertIsInstance(adam, torch.optim.Adam)
      sgd, sched = ImplicitronOptimizerFactory(breed="SGD")(0, model)
      self.assertIsInstance(sgd, torch.optim.SGD)
      adagrad, sched = ImplicitronOptimizerFactory(breed="Adagrad")(
          0, model
      )
      self.assertIsInstance(adagrad, torch.optim.Adagrad)
  
imports: import os
  import tempfile
  import unittest
  from pathlib import Path
  import torch
  from hydra import compose, initialize_config_dir
  from omegaconf import OmegaConf
  from projects.implicitron_trainer.impl.optimizer_factory import ImplicitronOptimizerFactory
  from ..None import experiment
  from .utils import interactive_testing_requested, intercept_logs
label_desc: Use image node_id 6 for calling the TestExperiment obj's underlying member method code with example usage: obj.test_optimizer_factory() without return types