code: def reorder_keys(dict1: dict, key_list: list) -> dict:
      """Returns a dictionary with keys in a given order
  
      Args:
          dict1: a dictionary
          key_list: desired key list order
  
      Returns:
          reordered dictionary
  
      """
      dict_class = dict1.__class__
      assert check_keys(dict1, key_list)
      # noinspection PyArgumentList
      return dict_class([(k, dict1[k]) for k in key_list])
  
imports: import math
  import itertools
  from dataclasses import replace
  from typing import Mapping, Any, Sequence, Iterable, Iterator, Union, Tuple, Dict, Set
label_desc: Use image node_id 13 for calling a global function with example usage: reorder_keys(dict1, key_list) and returns: dict_class