<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_for_targets(self, targets):
 """Gets the union of the products for the given targets, preserving the input order. :API: public """

    products = OrderedSet()
    for target in targets:
      products.update(self._products_by_target[target])
    return products