def METHOD_NAME(path_dir, filter):
    """Find last version of given directory content.
    Args:
        path_dir (str): directory path
        filter (list): list of strings used as file name filter
    Returns:
        str: file name with last version
    Example:
        last_version_file = get_last_version_from_path(
            "/project/shots/shot01/work", ["shot01", "compositing", "nk"])
    """
    assert os.path.isdir(path_dir), "`path_dir` argument needs to be directory"
    assert isinstance(filter, list) and (
        len(filter) != 0), "`filter` argument needs to be list and not empty"
    filtred_files = list()
    # form regex for filtering
    pattern = r".*".join(filter)
    for file in os.listdir(path_dir):
        if not re.findall(pattern, file):
            continue
        filtred_files.append(file)
    if filtred_files:
        sorted(filtred_files)
        return filtred_files[-1]
    return None