def METHOD_NAME(self, mocked_currentframe, mocked_create_test_file):
    path, test_name = "foo.ipynb", "q1"
    ret = Checker.check(path, test_name)
    mocked_create_test_file.assert_called_once_with(path, test_name=test_name)
    mocked_currentframe.assert_called_once()
    mocked_create_test_file.return_value.run.assert_called_once_with(
        mocked_currentframe.return_value.f_back.f_globals)
    assert ret is mocked_create_test_file.return_value