code: def collect_class_methods(cls, methods):
      if isinstance(methods, (list, tuple)):
          return [
              getattr(cls, m) if isinstance(m, str) else m
              for m in methods
          ]
      methods = []
      for _, method in inspect.getmembers(
          cls, predicate=inspect.isroutine
      ):
          if method.__name__[0] == "_" or method.__name__ in EXCLUDE:
              continue
          methods.append(method)
      return methods
  
file_path: hyperopt/docs/autogen.py
imports: import re
  import inspect
  import os
  import shutil
label_desc: Use image node_id 11 for calling a global function with example usage: collect_class_methods(cls, methods) and returns: methods, unknown