from pathlib import Path


def validate_path(file_name):
    """
    Validates if the passed-in argument is a valid path

    Parameters
    ----------
    file_name: str
        Path to be validated

    Returns
    -------
    tuple
        Boolean status and dict to identify if the path is a file or directory
    """
    f_path = Path(file_name)
    ret_arg = {'is_file': False, 'is_dir': False}

    if f_path.exists():
        if f_path.is_file():
            ret_arg['is_file'] = True
        elif f_path.is_dir():
            ret_arg['is_dir'] = True
        return True, ret_arg
    else:
        return False, ret_arg