def METHOD_NAME(example_dir_root, forced):
    '''Add examples to the library'''
    return_value = 0
    file_list = []
    count = 0
    for root, _directories, files in os.walk(example_dir_root):
        for file in files:
            if file.endswith(".ino"):
                if file not in file_list:
                    file_list.append(file)
                    source = os.path.join(root, file)
                    destination = os.path.join("examples", os.path.basename(os.path.splitext(file)[0]), file)
                    return_value = u_arduino_common.copy_file(source, destination, forced)
                    if return_value < 0:
                        break
                    count += return_value
                else:
                    print(f"Duplicate example sketch file name \"{file}\"")
                    return_value = -2
                    break
    if return_value >= 0:
        return_value = count
    print(f"{count} example(s) copied.")
    return return_value