import re


def is_allowed_anonymous_path(path, method):
    """Checks if a given path and method is allowed for accessing without being authenticated"""
    allowed_regex_paths = [['/assignments/.*', ['POST']]]
    for item in allowed_regex_paths:
        regex_path, allowed_methods = item[0], item[1]
        pattern = re.compile(regex_path)
        if pattern.match(path) and method in allowed_methods:
            return True

    return False