code: def create_supernet_scheduler(cfg, optimizer):
      ITERS = cfg.EPOCHS * (
          1280000 / (cfg.NUM_GPU * cfg.DATASET.BATCH_SIZE)
      )
      lr_scheduler = torch.optim.lr_scheduler.LambdaLR(
          optimizer,
          lambda step: (cfg.LR - step / ITERS) if step <= ITERS else 0,
          last_epoch=-1,
      )
      return lr_scheduler, cfg.EPOCHS
  
file_path: nni/examples/nas/legacy/cream/lib/utils/util.py
imports: import sys
  import logging
  import torch
  import argparse
  import torch.nn
  from torch import optim
  from thop import profile, clever_format
  from timm.utils import *
  from lib.config import cfg
label_desc: Use image node_id 9 for calling a global function with example usage: create_supernet_scheduler(cfg, optimizer) and returns: lr_scheduler,  cfg