code: def intersection(*items: Iterable[T]) -> set[T]:
      """Does an intersection over all collection of items
  
      ..code:: python
  
          ans = intersection(["a", "b", "c"], "ab", ("b", "c"))
  
          items = [(1, 2, 3), (2, 3), (4, 5)]
          ans = intesection(*items)
  
      Parameters
      ----------
      *items : Iterable[T]
          A list of lists
  
      Returns
      -------
      Set[T]
          The intersection of all items
      """
      if len(items) == 0:
          return set()
  
      return set(
          reduce(lambda s1, s2: set(s1) & set(s2), items, items[0])
      )
  
file_path: auto-sklearn/autosklearn/util/functional.py
imports: from __future__ import annotations
  from typing import Callable, Hashable, Iterable, Iterator, TypeVar
  from functools import reduce
  from itertools import chain, cycle, islice, tee
label_desc: Use image node_id 1 for calling a global function with example usage: intersection() and returns: set, set