code: def resolve_warmup_steps(t_total, warmup_steps, warmup_proportion):
      if warmup_steps is None and warmup_proportion is None:
          raise RuntimeError()
      elif warmup_steps is not None and warmup_proportion is not None:
          raise RuntimeError()
      elif warmup_steps is None and warmup_proportion is not None:
          return warmup_proportion * t_total
      elif warmup_steps is not None and warmup_proportion is None:
          return warmup_steps
      else:
          raise RuntimeError()
  
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 3 for calling a global function with example usage: resolve_warmup_steps(t_total, warmup_steps, warmup_proportion) and returns: unknown, warmup_steps