code: def test_sort_dicts_by_keys():
      test_data = [{"Z": 1}, {"A": 10}]
  
      expected = [{"A": 10}, {"Z": 1}]
      actual = rasa.shared.utils.common.sort_list_of_dicts_by_first_key(
          test_data
      )
  
      assert actual == expected
  
imports: import asyncio
  from typing import Collection, List, Optional, Text
  from unittest.mock import Mock
  import pytest
  import rasa.shared.core.domain
  import rasa.shared.utils.common
  from rasa.shared.exceptions import RasaException
label_desc: Use image node_id 2 for calling a global function with example usage: test_sort_dicts_by_keys() without return types