code: def _get_functions(obj, exclude=None):
      return set(
          [
              n
              for n, target in [(n, getattr(obj, n)) for n in dir(obj)]
              if (
                  # not in exclude list
                  (exclude is None or n not in exclude)
                  # not module:
                  and not inspect.ismodule(target)
                  # not constant:
                  and not isinstance(
                      target, (int, float, bool, str, numpy.bool_)
                  )
                  # not exceptions or warning classes:
                  and (
                      not inspect.isclass(target)
                      or not issubclass(target, (BaseException,))
                  )
                  # not private/special method:
                  and not n.startswith("_")
              )
          ]
      )
  
imports: import importlib
  import inspect
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: _get_functions(obj, exclude) and returns: set