def METHOD_NAME(input, expectation, expected, tmp_path):
    filename = tmp_path / 'temp.json'
    with open(filename, 'w') as fp:
        fp.write(input)
    with expectation:
        res = types.JSON().convert(str(filename), None, None)
    if expected:
        assert res == expected