code: def get_function_doc(function, config=default_config):
      
      if config.exclude_function:
          for ex in config.exclude_function:
              if ex.match(function.__name__):
                  return None
  
      return _doc_object(function, 'function', config=config)
docs: Return doc for a function.