code: def from_dict(d):
      d = copy.copy(dict(d))
      schedule_type = d.pop("type")
      return SCHEDULE_MAP[schedule_type](**d)
  
imports: import abc
  import collections
  import copy
  import math
  from typing import Any, Iterable, List, Tuple, Union
  from jax import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: from_dict(d) and returns: SCHEDULE_MAP