from typing import List


def name_chunks_to_find_args(chunks: List[str]) -> List[str]:
    """
    Turn array of name chunks into a set of '-iname' args joined by '-a' predicate.

    For example:
    ["good"] becomes `-iname "*good*"`
    ["py","note"] becomes `( -iname "*py*" -a -iname "*note*" )`
    """
    if len(chunks) == 1:
        return ["-iname", f"*{chunks[0]}*"]
    args = ["(", "-iname", f"*{chunks[0]}*"]
    for chunk in chunks[1:]:
        args += ["-a", "-iname", f"*{chunk}*"]
    args += [")"]
    return args