(path)
return True
check if path is testcase path or path list.

    Args:
        path (str/list): file path or file path list.

    Returns:
        bool: True if path is valid file path or path list, otherwise False.
check if path is testcase path or path list.
check if path is testcase path or path list .
def is_testcase_path(path):
    """ check if path is testcase path or path list.

    Args:
        path (str/list): file path or file path list.

    Returns:
        bool: True if path is valid file path or path list, otherwise False.

    """
    if not isinstance(path, (str, list)):
        return False

    if isinstance(path, list):
        for p in path:
            if not is_testcase_path(p):
                return False

    if isinstance(path, str):
        if not os.path.exists(path):
            return False

    return True
def is_testcase_path ( path ) : if not isinstance ( path , ( str , list ) ) : return False if isinstance ( path , list ) : for p in path : if not is_testcase_path ( p ) : return False if isinstance ( path , str ) : if not os . path . exists ( path ) : return False return True