class_docstr: Base class for instanes that stack job estimators
docstr: Replace a current member of the stack with a new instance
docstr_tok: ["Replace","a","current","member","of","the","stack","with","a","new","instance"]
code: def replace(self, idx, item):
      """Replace a current member of the stack with a new instance"""
      attr = item.name.replace("-", "_").replace(" ", "").strip()
      setattr(self, attr, item)
      self.stack[idx] = item
  
imports: import warnings
  from abc import abstractmethod
  import numpy
  from ._base_functions import check_stack, check_params
  from ..None import config
  from ..utils.exceptions import ParallelProcessingError
  from ..externals.sklearn.base import clone, BaseEstimator
label_desc: Use image node_id 4 for calling the BaseStacker obj's underlying member method code with example usage: obj.replace(idx, item) without return types