def returns_section(thing, doc, header_level):
lines = []<EOL>return_type = None<EOL>try:<EOL><INDENT>return_type = thing.__annotations__["<STR_LIT>"]<EOL><DEDENT>except AttributeError:<EOL><INDENT>try:<EOL><INDENT>return_type = thing.fget.__annotations__["<STR_LIT>"]<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT>if return_type is None:<EOL><INDENT>return_type = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>return_type = (<EOL>f"<STR_LIT>"<EOL>if return_type.__module__ == "<STR_LIT>"<EOL>else f"<STR_LIT>"<EOL>)<EOL><DEDENT>except AttributeError:<EOL><INDENT>return_type = str(return_type)<EOL><DEDENT><DEDENT>try:<EOL><INDENT>if "<STR_LIT>" in doc and len(doc["<STR_LIT>"]) > <NUM_LIT:0> or return_type != "<STR_LIT>":<EOL><INDENT>lines.append(f"<STR_LIT>")<EOL>if return_type != "<STR_LIT>" and len(doc["<STR_LIT>"]) == <NUM_LIT:1>:<EOL><INDENT>name, typ, desc = doc["<STR_LIT>"][<NUM_LIT:0>]<EOL>if typ != "<STR_LIT>":<EOL><INDENT>lines.append(f"<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>lines.append(f"<STR_LIT>")<EOL><DEDENT>lines.append("<STR_LIT>")<EOL>if desc != "<STR_LIT>":<EOL><INDENT>lines.append(f"<STR_LIT>")<EOL><DEDENT><DEDENT>elif return_type != "<STR_LIT>":<EOL><INDENT>lines.append(f"<STR_LIT>")<EOL>lines.append("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>for name, typ, desc in doc["<STR_LIT>"]:<EOL><INDENT>if "<STR_LIT::>" in name:<EOL><INDENT>name, typ = name.split("<STR_LIT::>")<EOL><DEDENT>if typ != "<STR_LIT>":<EOL><INDENT>line = f"<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>line = f"<STR_LIT>"<EOL><DEDENT>line += "<STR_LIT>"<EOL>lines.append(line)<EOL>lines.append(f"<STR_LIT>")<EOL><DEDENT><DEDENT><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>pass<EOL><DEDENT>return lines<EOL>
Generate markdown for Returns section.

Parameters
----------
thing : function
    Function to produce returns for
doc : dict
    Dict from numpydoc
header_level : int
    Number of `#`s to use for header

Returns
-------
list of str
    Markdown for examples section