code: def get_methods(cls, exclude=None, return_strings=True):
      """Get all the method of a class.
  
      # Arguments
  
          cls: The class to fetch the methods from. If it's a
              string, it should be in the dotted format. `'keras.layers.Dense'`
              for example.
          exclude: The names which will be excluded from the returned list. For
              example, `get_methods('keras.Model', exclude=['save'])`.
          return_strings: If False, the actual methods will be returned. Note that
              if you use aliases when building your docs, you should use strings.
              This is because the computed signature uses
              `__name__` and `__module__` if you don't provide a string as input.
  
      # Returns
  
       A list of strings or a list of methods.
      """
      if isinstance(cls, str):
          cls_str = cls
          cls = import_object(cls)
      else:
          cls_str = f"{cls.__module__}.{cls.__name__}"
      exclude = exclude or []
      methods = []
      for _, method in inspect.getmembers(cls, predicate=isroutine):
          if method.__name__[0] == "_" or method.__name__ in exclude:
              continue
          if return_strings:
              methods.append(f"{cls_str}.{method.__name__}")
          else:
              methods.append(method)
      return methods
  
file_path: autokeras/docs/keras_autodoc/gathering_members.py
imports: import inspect
  from inspect import isclass
  from inspect import isfunction
  from inspect import isroutine
  from typing import List
  from .utils import import_object
label_desc: Use image node_id 3 for calling a global function with example usage: get_methods(cls, exclude, return_strings) and returns: methods