def METHOD_NAME(output, inputs):
    out_dir = os.path.join(kw['output_folder'],
                           os.path.dirname(output))
    inputs = [
        os.path.join(
            out_dir,
            os.path.relpath(i, out_dir))
        for i in inputs if os.path.isfile(i)
    ]
    with open(os.path.join(out_dir, os.path.basename(output)), 'wb+') as out_fh:
        for i in inputs:
            with open(i, 'rb') as in_fh:
                shutil.copyfileobj(in_fh, out_fh)
            out_fh.write(b'\n')