code: def get_list_of_available_simulators() -> Dict[AnyStr, List]:
      """
      List of simulators available on the system. Simulators are presented as a dictionary.
      The dictionary key is the name of the operating system of the simulator.
      The dictionary value is a list of all simulators with a given operating system.
      """
  
      with subprocess.Popen(
          "xcrun simctl list devices available --json",
          shell=True,
          stdin=subprocess.PIPE,
          stdout=subprocess.PIPE,
      ) as proc:
          out, _ = proc.communicate()
          available_simulators = json.loads(out)["devices"]
          available_simulators = {
              key: value
              for key, value in available_simulators.items()
              if value != []
          }
      return available_simulators
  
imports: import os
  import json
  import time
  import threading
  import subprocess
  from enum import Enum
  from typing import Dict, List, AnyStr
label_desc: Use image node_id 1 for calling a global function with example usage: get_list_of_available_simulators() and returns: available_simulators