code: def _get_all_fitted_attributes(estimator):
      "Get all the fitted attributes of an estimator including properties"
      # attributes
      fit_attr = list(estimator.__dict__.keys())
  
      # properties
      with warnings.catch_warnings():
          warnings.filterwarnings("error", category=FutureWarning)
  
          for name in dir(estimator.__class__):
              obj = getattr(estimator.__class__, name)
              if not isinstance(obj, property):
                  continue
  
              # ignore properties that raises an AttributeError and deprecated
              # properties
              try:
                  getattr(estimator, name)
              except (AttributeError, FutureWarning):
                  continue
              fit_attr.append(name)
  
      return [
          k
          for k in fit_attr
          if k.endswith("_") and not k.startswith("_")
      ]
  
imports: import importlib
  import inspect
  import warnings
  from inspect import signature
  from pkgutil import walk_packages
  import pytest
  from sklearn.datasets import make_classification
  from sklearn.linear_model import LogisticRegression
  from sklearn.utils import IS_PYPY
  from sklearn.utils._testing import _get_func_name, check_docstring_parameters, ignore_warnings
  from sklearn.utils.estimator_checks import _enforce_estimator_tags_y
  from sklearn.utils.deprecation import _is_deprecated
  from sklearn.utils.estimator_checks import _construct_instance
  import imblearn
  from imblearn.base import is_sampler
  from imblearn.utils.estimator_checks import _set_checking_parameters
  from imblearn.utils.testing import all_estimators
label_desc: Use image node_id 5 for calling a global function with example usage: _get_all_fitted_attributes(estimator) and returns: unknown