docs: def intersect(self, second_iterable, selector=identity):
          '''Returns those elements which are both in the source sequence and in
          the second_iterable.
  
          Note: This method uses deferred execution.
  
          Args:
              second_iterable: Elements are returned if they are also in the
                  sequence.
  
              selector: An optional single argument function which is used to
                  project the elements in the source and second_iterables prior
                  to comparing them. If omitted the identity function will be
                  used.
  
          Returns:
              A sequence containing all elements in the source sequence  which
              are also members of the second sequence.
  
          Raises:
              ValueError: If the Queryable has been closed.
              TypeError: If the second_iterable is not in fact iterable.
              TypeError: If the selector is not callable.
          '''
          if self.closed():
              raise ValueError("Attempt to call intersect() on a "
                               "closed Queryable.")
  
          if not is_iterable(second_iterable):
              raise TypeError("Cannot compute intersect() with second_iterable "
                 "of non-iterable {0}".format(str(type(second_iterable))[7: -1]))
  
          if not is_callable(selector):
              raise TypeError("intersect() parameter selector={0} is "
                              "not callable".format(repr(selector)))
  
          return self._create(self._generate_intersect_result(second_iterable,
                                                              selector))