def METHOD_NAME(some_function: callable):
    @functools.wraps(some_function)
    def the_inner_wrapper(*args, **kwargs):
        request: ApiStudyResearcherRequest = args[0]
        assert isinstance(request, HttpRequest), \
            f"first parameter of {some_function.__name__} must be an HttpRequest, was {type(request)}."
        # populate the ApiStudyResearcherRequest
        request.api_study, request.api_researcher = \
            api_check_researcher_study_access(request, block_test_studies)
        return some_function(*args, **kwargs)
    return the_inner_wrapper