code: def _get_item_intersection_info(self, item_pairs):
          
  
          if type(item_pairs) is list:
              if not all(type(t) in [list, tuple] and len(t) == 2 for t in item_pairs):
                  raise TypeError("item_pairs must be 2-column SFrame of two item "
                                  "columns, or a list of (item_1, item_2) tuples. ")
  
              item_name = self.item_id
              item_pairs = _turicreate.SFrame({item_name + "_1" : [v1 for v1, v2 in item_pairs],
                                             item_name + "_2" : [v2 for v1, v2 in item_pairs]})
  
          if not isinstance(item_pairs, _turicreate.SFrame):
              raise TypeError("item_pairs must be 2-column SFrame of two item "
                              "columns, or a list of (item_1, item_2) tuples. ")
          
          response = self.__proxy__.get_item_intersection_info(item_pairs)
          return response
docs: For a collection of item -> item pairs, returns information about the
          users in that intersection.
  
          Parameters
          ----------
  
          item_pairs : 2-column SFrame of two item columns, or a list of
             (item_1, item_2) tuples.
  
          Returns
          -------
          out : SFrame
             A SFrame with the two item columns given above, the number of
             users that rated each, and a dictionary mapping the user to a
             pair of the ratings, with the first rating being the rating of
             the first item and the second being the rating of the second item.
             If no ratings are provided, these values are always 1.0.