def METHOD_NAME(
    mocker, set_environment_variables, file_path, expected_output
):
    """
    Validates that the context of a log file is extracted correctly.
    """
    mocker.patch.object(DefaultApi, "download_file", return_value=file_path)
    runner = Runner("Query", json_to_outputs=True)
    temp = runner._return_context_dict_from_log(["123"])
    assert temp == expected_output