def METHOD_NAME():
    with responses.RequestsMock() as rsps:
        rsps.add(
            method=responses.GET,
            url=re.compile(r"http://localhost/api/v4/(groups|projects)/1/invitations"),
            json=invitations_content,
            content_type="application/json",
            status=200,
        )
        yield rsps