code: def _clear_final_estimator_fit_vars(self, all: bool = False):
      vars_to_remove = []
      try:
          for var in self._fit_vars:
              if (
                  all
                  or var
                  not in get_all_object_vars_and_properties(
                      self._final_estimator
                  ).items()
              ):
                  vars_to_remove.append(var)
          for var in vars_to_remove:
              try:
                  delattr(self, var)
                  self._fit_vars.remove(var)
              except Exception:
                  pass
      except Exception:
          pass
  
imports: import platform
  import warnings
  from copy import deepcopy
  from inspect import signature
  import imblearn.pipeline
  import sklearn.pipeline
  from sklearn.base import clone
  from sklearn.utils import _print_elapsed_time
  from sklearn.utils.metaestimators import available_if
  from sklearn.utils.validation import check_memory
  from pycaret.utils._show_versions import _get_deps_info
  from pycaret.utils.generic import get_all_object_vars_and_properties, variable_return
label_desc: Use image node_id 21 for calling the Pipeline obj's underlying member method code with example usage: obj._clear_final_estimator_fit_vars(all) without return types