code: def intersection(set1, set2):
      """Removes from set1 any items which don't appear in set2 and returns the result."""
      assert is_iterable(set1)
      assert is_iterable(set2)
      result = []
      for v in set1:
          if v in set2:
              result.append(v)
      return result
  
imports: from b2.util import is_iterable
  from .utility import to_seq
label_desc: Use image node_id 2 for calling a global function with example usage: intersection(set1, set2) and returns: result