code: def swap(arr, i, j):
      # swaps two elements in an array
      arr[i], arr[j] = arr[j], arr[i]
  
file_path: coding-problems/Arrays/top_k_frequent_elements.py
imports: import heapq
label_desc: Use image node_id 4 for calling a global function with example usage: swap(arr, i, j) without return types