code: def grep_by_device(
      available_devices: List[Dict], device_name: IOSDevice
  ) -> List[Dict]:
      """Search for simulators that emulate a given device."""
  
      return [
          item
          for item in available_devices
          if device_name.value in item["name"]
      ]
  
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 3 for calling a global function with example usage: grep_by_device(available_devices, device_name) and returns: unknown