code: def get_constant_schedule(optimizer: Optimizer, last_epoch: int = -1):
      """
      Create a schedule with a constant learning rate, using the learning rate set in optimizer.
  
      Args:
          optimizer ([`~torch.optim.Optimizer`]):
              The optimizer for which to schedule the learning rate.
          last_epoch (`int`, *optional*, defaults to -1):
              The index of the last epoch when resuming training.
  
      Return:
          `torch.optim.lr_scheduler.LambdaLR` with the appropriate schedule.
      """
      return LambdaLR(optimizer, lambda _: 1, last_epoch=last_epoch)
  
imports: import math
  import warnings
  from typing import Callable, Iterable, Optional, Tuple, Union
  import torch
  from torch import nn
  from torch.optim import Optimizer
  from torch.optim.lr_scheduler import LambdaLR
  from .trainer_utils import SchedulerType
  from .utils import logging
  from .utils.versions import require_version
label_desc: Use image node_id 1 for calling a global function with example usage: get_constant_schedule(optimizer, last_epoch) and returns: LambdaLR