class_docstr: The base class for explainers to create explanataion 
docstr: Fit model for a given explainer
  
  :param X: Iterable
  :type X: Iterable[Any]
  :param y
  :type y: Iterable[Any]
  :return: A base txt model object
  :rtype BaseTextModel
docstr_tok: ["Fit","model","for","a","given","explainer",":","param","X",":","Iterable",":","type","X",":","Iterable","[","Any","]",":","param","y",":","type","y",":","Iterable","[","Any","]",":","return",":","A","base","txt","model","object",":","rtype","BaseTextModel"]
code: def fit(
      self, X: Iterable[Any], y: Optional[Iterable[Any]]
  ) -> BaseTextModel:
      """Fit model for a given explainer
  
      :param X: Iterable
      :type X: Iterable[Any]
      :param y
      :type y: Iterable[Any]
      :return: A base txt model object
      :rtype BaseTextModel
      """
      pass
  
file_path: interpret-text/python/interpret_text/experimental/common/base_explainer.py
imports: from abc import abstractmethod, ABC
  from typing import Optional, Any, Iterable
  from interpret_text.experimental.common.base_text_model import BaseTextModel
  from interpret_text.experimental.common.preprocessor.base_text_preprocessor import BaseTextPreprocessor
  from interpret_text.experimental.explanation import LocalExplanation
label_desc: Use image node_id 2 for calling the BaseTextExplainer obj's underlying member method code with example usage: obj.fit(X, y) without return types