def METHOD_NAME(folder: Path, lib_dir: Path):
    # iterate over files in the wheel
    for root, _, files in os.walk(folder):
        for filename in files:
            file = Path(root) / filename
            path_patterns = [Path("/data/Library/bin/"), Path("/data/lib/")]
            if any(str(pattern) in str(file) for pattern in path_patterns):
                shutil.copy2(file, lib_dir / filename)