def load_section(self, section):
    """
    Loads the contents of a #Section. The `section.identifier` is the name
    of the object that we need to load.

    # Arguments
      section (Section): The section to load. Fill the `section.title` and
        `section.content` values. Optionally, `section.loader_context` can
        be filled with custom arbitrary data to reference at a later point.
    """

    assert section.identifier is not None
    obj, scope = import_object_with_scope(section.identifier)

    if '.' in section.identifier:
      default_title = section.identifier.rsplit('.', 1)[1]
    else:
      default_title = section.identifier

    section.title = getattr(obj, '__name__', default_title)
    section.content = trim(get_docstring(obj))
    section.loader_context = {'obj': obj, 'scope': scope}

    # Add the function signature in a code-block.
    if callable(obj):
      sig = get_function_signature(obj, scope if inspect.isclass(scope) else None)
      sig, _ = FormatCode(sig, style_config='pep8')
      section.content = '```python\n{}\n```\n'.format(sig.strip()) + section.content
def load_section ( self , section ) : assert section . identifier is not None obj , scope = import_object_with_scope ( section . identifier ) if '.' in section . identifier : default_title = section . identifier . rsplit ( '.' , 1 ) [ 1 ] else : default_title = section . identifier section . title = getattr ( obj , '__name__' , default_title ) section . content = trim ( get_docstring ( obj ) ) section . loader_context = { 'obj' : obj , 'scope' : scope } if callable ( obj ) : sig = get_function_signature ( obj , scope if inspect . isclass ( scope ) else None ) sig , _ = FormatCode ( sig , style_config = 'pep8' ) section . content = '```python\n{}\n```\n' . format ( sig . strip ( ) ) + section . content
Loads the contents of a #Section. The `section.identifier` is the name
    of the object that we need to load.

    # Arguments
      section (Section): The section to load. Fill the `section.title` and
        `section.content` values. Optionally, `section.loader_context` can
        be filled with custom arbitrary data to reference at a later point.