input: from typing import Set, Any
  
  def intersection(set1: Set[Any], set2: Set[Any]) -> Set[Any]:
      """Generate and return the intersection of two sets.
      >>> intersection({1, 2, 3, 4}, {3, 4, 5, 6})
      {3, 4}
      >>> intersection({'a', 'b', 'c'}, {'b', 'c', 'd'})
      {'b', 'c'}
      """
      return set1 & set2
output:     return set1 & set2