code: def sectionFromFunction(function,*args,**kwargs):
          
          figures, tables = function(*args,**kwargs)
          title = inspect.getcomments(function)[1:].strip()
          text = inspect.getdoc(function)
          code = inspect.getsource(function)
          return Section(title=title,text=text,figures=figures,tables=tables,code=code)
docs: This staticmethod executes the function that is passed with the provided args and kwargs.
          The first line of the function docstring is used as the section title, the comments
          within the function body are parsed and added as the section text.
          The function should return an ordered dict of figures and tables, that are then
          attached to the section.
  
          Args:
              function (function): The function that generates the section content.
  
          Returns:
              Section
  
          >>> # Section title of example function
          ... def exampleFunction(a,b=None):
          ...     'Mock figures and tables included'
          ...     figures = (('fig1',Mock()),('fig2',Mock()))
          ...     tables = (('tab1',Mock()),('tab2',Mock()))
          ...     return figures, tables
          >>> Section.sectionFromFunction(exampleFunction,Mock(),b=Mock())
          <Section @ Section title of example function>