class_docstr: A single learner that is used by DisagreementLearner.
class_docstr_tok: ["A","single","learner","that","is","used","by","DisagreementLearner","."]
docstr: Helper method to verify the arguments given to fit()
docstr_tok: ["Helper","method","to","verify","the","arguments","given","to","fit","(",")"]
code: def _verify_fit_args(
      pairs: TrainingExamples, y: LabelsLike
  ) -> list[Literal[0, 1]]:
      """Helper method to verify the arguments given to fit()"""
      if len(pairs) == 0:
          raise ValueError("pairs must have length of at least 1")
      y = list(y)
      if len(pairs) != len(y):
          raise ValueError(
              f"pairs and y must be same length. Got {len(pairs)} and {len(y)}"
          )
      return y
  
imports: from __future__ import annotations
  import logging
  import random
  from abc import ABC, abstractmethod
  from typing import TYPE_CHECKING, overload
  from warnings import warn
  import numpy
  import numpy.typing
  import sklearn.linear_model
  import dedupe.core
  import dedupe.training
label_desc: Use image node_id 4 for calling the Learner obj's underlying member method code with example usage: obj._verify_fit_args(pairs, y) and returns: y