class_docstr: Search implementation of :class:`~nni.nas.strategy.DARTS`.
  
  The dataloader is expected to be a CombinedLoader with two keys: ``train`` and ``val``.
  
  See Also
  --------
  nni.nas.strategy.DARTS
  nni.nas.pytorch.oneshot.base_lightning.BaseOneShotLightningModule
class_docstr_tok: ["Search","implementation","of",":","class",":","`","~nni.nas.strategy.DARTS","`",".","The","dataloader","is","expected","to","be","a","CombinedLoader","with","two","keys",":","``","train","``","and","``","val","``",".","See","Also","--","--","--","--","nni.nas.strategy.DARTS","nni.nas.pytorch.oneshot.base_lightning.BaseOneShotLightningModule"]
code: def postprocess_weight_optimizers(self, optimizer):
      blacklist = set(self.arch_parameters())
  
      def _process_fn(opt):
          if isinstance(opt, optim.Optimizer):
              for param_group in opt.param_groups:
                  if "params" in param_group:
                      # Remove some parameters.
                      param_group["params"] = [
                          p
                          for p in param_group["params"]
                          if p not in blacklist
                      ]
              return opt
          elif isinstance(opt, list):
              return [_process_fn(o) for o in opt]
          elif isinstance(opt, tuple):
              return tuple([_process_fn(o) for o in opt])
          elif isinstance(opt, dict):
              return {k: _process_fn(v) for k, v in opt.items()}
          else:
              return opt
  
      return _process_fn(optimizer)
  
imports: from __future__ import annotations
  import logging
  import pytorch_lightning
  import torch
  import torch.nn
  import torch.optim
  from .base_lightning import BaseOneShotLightningModule
  from .supermodule.differentiable import GumbelSoftmax
  from .profiler import ExpectationProfilerPenalty
label_desc: Use image node_id 5 for calling the DartsLightningModule obj's underlying member method code with example usage: obj.postprocess_weight_optimizers(optimizer) and returns: _process_fn, opt, unknown, tuple, unknown, opt