code: def distance(self, *args, **kwargs):
          
          metric = kwargs.get("metric", "cosine")    # Default is cosine
  
          combinations = list(itertools.combinations(args, r=2))
  
          ret = []
          for word1, word2 in combinations:
              dist = distance(self[word1], self[word2], metric=metric)
              ret.append((word1, word2, dist))
          return ret
docs: Compute the distance distance between two vectors or more (all combinations) of words
  
          Parameters
          ----------
          words : one or more words
          n : int (default 10)
              number of neighbors to return
          metric : string (default "cosine")
              What metric to use