code: def compute(self, pairs, x, x_link=None):
          
          if not isinstance(pairs, pandas.MultiIndex):
              raise ValueError(
                  "expected pandas.MultiIndex with record pair indices "
                  "as first argument"
              )
  
          if not isinstance(x, pandas.DataFrame):
              raise ValueError("expected pandas.DataFrame as second argument")
  
          if x_link is not None and not isinstance(x_link, pandas.DataFrame):
              raise ValueError("expected pandas.DataFrame as third argument")
  
          if self.n_jobs == 1:
              results = self._compute(pairs, x, x_link)
          elif self.n_jobs > 1:
              results = self._compute_parallel(
                  pairs, x, x_link, n_jobs=self.n_jobs)
          else:
              raise ValueError("number of jobs should be positive integer")
  
          return results
docs: Compare the records of each record pair.
  
          Calling this method starts the comparing of records.
  
          Parameters
          ----------
          pairs : pandas.MultiIndex
              A pandas MultiIndex with the record pairs to compare. The indices
              in the MultiIndex are indices of the DataFrame(s) to link.
          x : pandas.DataFrame
              The DataFrame to link. If `x_link` is given, the comparing is a
              linking problem. If `x_link` is not given, the problem is one of
              deduplication.
          x_link : pandas.DataFrame, optional
              The second DataFrame.
  
          Returns
          -------
          pandas.DataFrame
              A pandas DataFrame with feature vectors, i.e. the result of
              comparing each record pair.