code: def test_convert_list_dict():
      dic = {"k1": [[0], [0], [0]], "k2": [[1], [1], [1]]}
      tar_dict = [
          {"k1": [0], "k2": [1]},
          {"k1": [0], "k2": [1]},
          {"k1": [0], "k2": [1]},
      ]
  
      converted_dic = invert_data_structure(dic)
      converted_list = invert_data_structure(tar_dict)
  
      assert converted_dic == tar_dict
      assert converted_list == dic
  
file_path: doctr/tests/common/test_models.py
imports: from io import BytesIO
  import cv2
  import numpy
  import pytest
  import requests
  from doctr.io import reader
  from doctr.models._utils import estimate_orientation, get_language, invert_data_structure
  from doctr.utils import geometry
label_desc: Use image node_id 5 for calling a global function with example usage: test_convert_list_dict() without return types