code: def create_optimizer(
      model,
      learning_rate,
      t_total,
      warmup_steps,
      warmup_proportion,
      optimizer_epsilon=1e-8,
      optimizer_type="adam",
      verbose=False,
  ):
      return create_optimizer_from_params(
          named_parameters=list(model.named_parameters()),
          learning_rate=learning_rate,
          t_total=t_total,
          warmup_steps=warmup_steps,
          warmup_proportion=warmup_proportion,
          optimizer_epsilon=optimizer_epsilon,
          optimizer_type=optimizer_type,
          verbose=verbose,
      )
  
file_path: jiant/jiant/shared/model_setup.py
imports: import transformers
  import torch
  from jiant.ext.radam import RAdam
label_desc: Use image node_id 1 for calling a global function with example usage: create_optimizer(model, learning_rate, t_total, warmup_steps, warmup_proportion, optimizer_epsilon, optimizer_type, verbose) and returns: create_optimizer_from_params