def METHOD_NAME(cmd_fmt: str, *md5):
    if all(md5):
        cmd_fmt = cmd_fmt.format(*(files[x] for x in md5))
    out = subprocess.run(
        cmd_fmt,
        shell=True,
        capture_output=True,
    )
    return out