Magic AI may compare prompt IDs collected from two product surfaces. Given two lists of integers, return the IDs that appear in both lists.
Each ID should appear at most once in the result, and the result must preserve the order in which IDs first appear in list_a. Repeated occurrences within either input list do not create repeated output values.
Implement find_shared_ids(list_a, list_b).
list_a and list_b, two lists of integers.list_a.def find_shared_ids(list_a, list_b):