class_docstr: Base model container class, for easier definition of containers. Ensures consistent format
  before being turned into a dataframe row.
  
  Parameters
  ----------
  id : str
      ID used as index.
  name : str
      Full display name.
  class_def : type
      The class used for the model, eg. LogisticRegression.
  eq_function : type, default = None
      Function to use to check whether an object (model) can be considered equal to the model
      in the container. If None, will be ``is_instance(x, class_def)`` where x is the object.
  args : dict, default = {} (empty dict)
      The arguments to always pass to constructor when initializing object of class_def class.
  is_special : bool, default = False
      Is the model special (not intended to be used on its own, eg. VotingClassifier).
  
  Attributes
  ----------
  id : str
      ID used as index.
  name : str
      Full display name.
  class_def : type
      The class used for the model, eg. LogisticRegression.
  eq_function : type
      Function to use to check whether an object (model) can be considered equal to the model
      in the container. Must take the checked object as the sole parameter.
      If None, will be ``is_instance(x, class_def)`` where x is the object.
  args : dict
      The arguments to always pass to constructor when initializing object of class_def class.
  is_special : bool
      Is the model special (not intended to be used on its own, eg. VotingClassifier).
class_docstr_tok: ["Base","model","container","class",",","for","easier","definition","of","containers",".","Ensures","consistent","format","before","being","turned","into","a","dataframe","row",".","Parameters","--","--","--","--","--","id",":","str","ID","used","as","index",".","name",":","str","Full","display","name",".","class_def",":","type","The","class","used","for","the","model",",","eg",".","LogisticRegression",".","eq_function",":","type",",","default","=","None","Function","to","use","to","check","whether","an","object","(","model",")","can","be","considered","equal","to","the","model","in","the","container",".","If","None",",","will","be","``","is_instance","(","x",",","class_def",")","``","where","x","is","the","object",".","args",":","dict",",","default","=","{","}","(","empty","dict",")","The","arguments","to","always","pass","to","constructor","when","initializing","object","of","class_def","class",".","is_special",":","bool",",","default","=","False","Is","the","model","special","(","not","intended","to","be","used","on","its","own",",","eg",".","VotingClassifier",")",".","Attributes","--","--","--","--","--","id",":","str","ID","used","as","index",".","name",":","str","Full","display","name",".","class_def",":","type","The","class","used","for","the","model",",","eg",".","LogisticRegression",".","eq_function",":","type","Function","to","use","to","check","whether","an","object","(","model",")","can","be","considered","equal","to","the","model","in","the","container",".","Must","take","the","checked","object","as","the","sole","parameter",".","If","None",",","will","be","``","is_instance","(","x",",","class_def",")","``","where","x","is","the","object",".","args",":","dict","The","arguments","to","always","pass","to","constructor","when","initializing","object","of","class_def","class",".","is_special",":","bool","Is","the","model","special","(","not","intended","to","be","used","on","its","own",",","eg",".","VotingClassifier",")","."]
code: def is_estimator_equal(self, estimator):
      return self.eq_function(estimator)
  
file_path: pycaret/pycaret/containers/models/base_model.py
imports: from typing import Any, Dict, List, Optional
  from pycaret.containers.base_container import BaseContainer
  from pycaret.internal.distributions import CategoricalDistribution
  from pycaret.internal.pycaret_experiment.pycaret_experiment import _PyCaretExperiment
  from pycaret.utils.generic import get_allowed_engines, get_logger
label_desc: Use image node_id 2 for calling the ModelContainer obj's underlying member method code with example usage: obj.is_estimator_equal(estimator) and returns: self