code: def test_reorder_keys():
      dict1 = {"a": 1, "b": 1, "c": 1}
      assert list(
          py_datastructures.reorder_keys(
              dict1, key_list=["a", "b", "c"]
          ).keys()
      ) == [
          "a",
          "b",
          "c",
      ]
      assert list(
          py_datastructures.reorder_keys(
              dict1, key_list=["c", "a", "b"]
          ).keys()
      ) == [
          "c",
          "a",
          "b",
      ]
      with pytest.raises(AssertionError):
          py_datastructures.reorder_keys(
              dict1, key_list=["d", "b", "d"]
          )
  
file_path: jiant/tests/utils/python/test_datastructures.py
imports: import json
  import pytest
  from dataclasses import dataclass
  import jiant.utils.python.datastructures
label_desc: Use image node_id 10 for calling a global function with example usage: test_reorder_keys() without return types