def METHOD_NAME(*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)