def METHOD_NAME(layer):
    """Generate a report for a given layer"""
    notes = get_layer_notices(layer)
    filelicenses, pkgs_table = get_layer_info_list(layer)
    notes += formats.layer_file_licenses_list.format(
        list=filelicenses)
    if pkgs_table:
        notes += formats.layer_packages_header.format('\n')
        for line in pkgs_table.splitlines():
            notes += '\t' + line + '\n'
    else:
        notes += formats.layer_packages_header.format("None\n")
    return notes