code: def get_all_methods():
      estimators = all_estimators()
      for name, Estimator in estimators:
          if name.startswith("_"):
              # skip private classes
              continue
          methods = []
          for name in dir(Estimator):
              if name.startswith("_"):
                  continue
              method_obj = getattr(Estimator, name)
              if hasattr(method_obj, "__call__") or isinstance(
                  method_obj, property
              ):
                  methods.append(name)
          methods.append(None)
  
          for method in sorted(methods, key=lambda x: str(x)):
              yield Estimator, method
  
file_path: imbalanced-learn/maint_tools/test_docstring.py
imports: import importlib
  import inspect
  import pkgutil
  import re
  from inspect import signature
  from typing import Optional
  import pytest
  import imblearn
  from imblearn.utils.testing import all_estimators
label_desc: Use image node_id 1 for calling a global function with example usage: get_all_methods() without return types