human
I wrote the below code

    def println(value):
        u'Write    a    new    line    containing    `value`    to    `out`.'
        out.write((value + u'\n'))
    footer = read_footer(filename)
    println(u'File    Metadata:    {0}'.format(filename))
    println(u'        Version:    {0}'.format(footer.version))
    println(u'        Num    Rows:    {0}'.format(footer.num_rows))
    println(u'        k/v    metadata:    ')
    if (footer.key_value_metadata and (len(footer.key_value_metadata) > 0)):
        for item in footer.key_value_metadata:
            println(u'                {0}={1}'.format(item.key, item.value))
    else:
        println(u'                (none)')
    println(u'        schema:    ')
    for element in footer.schema:
        println(u'                {name}    ({type}):    length={type_length},    repetition={repetition_type},    children={num_children},    converted_type={converted_type}'.format(name=element.name, type=(parquet_thrift.Type._VALUES_TO_NAMES[element.type] if element.type else None), type_length=element.type_length, repetition_type=_get_name(parquet_thrift.FieldRepetitionType, element.repetition_type), num_children=element.num_children, converted_type=element.converted_type))
    if show_row_group_metadata:
        println(u'        row    groups:    ')
        for row_group in footer.row_groups:
            num_rows = row_group.num_rows
            size_bytes = row_group.total_byte_size
            println(u'        rows={num_rows},    bytes={bytes}'.format(num_rows=num_rows, bytes=size_bytes))
            println(u'                chunks:')
            for col_group in row_group.columns:
                cmd = col_group.meta_data
                println(u'                        type={type}    file_offset={offset}    compression={codec}    encodings={encodings}    path_in_schema={path_in_schema}    num_values={num_values}    uncompressed_bytes={raw_bytes}    compressed_bytes={compressed_bytes}    data_page_offset={data_page_offset}   ...

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def dump_metadata(filename, show_row_group_metadata, out=sys.stdout):