def METHOD_NAME(tmp_path):
    temp_input_file_path = tmp_path.joinpath("input.json")
    temp_input_file_path.write_text('{"data": [5000]}')
    temp_output_file_path = tmp_path.joinpath("output.json")
    res = runner.invoke(
        cli.predict, ["--target", f_target, "--name", f_name, "--input-path", temp_input_file_path]
    )
    assert '{"predictions": [1, 2, 3]}' in res.stdout
    res = runner.invoke(
        cli.predict,
        [
            "--target",
            f_target,
            "--name",
            f_name,
            "--input-path",
            temp_input_file_path,
            "--output-path",
            temp_output_file_path,
        ],
    )
    with open(temp_output_file_path) as f:
        assert json.load(f) == {"predictions": [1, 2, 3]}