def METHOD_NAME(tmpdir, x, y, variable_batch_size):
    contents = {
        'networks': [
            {'name': 'Validation',
             'batch_size': 1,
             'outputs': {'y': y},
             'names': {'x': x}}],
        'executors': [
            {'name': 'Runtime',
             'network': 'Validation',
             'data': ['x'],
             'output': ['y']}]}
    tmpdir.ensure(dir=True)
    tmppath = tmpdir.join('tmp.nnp')
    nnp_file = tmppath.strpath
    nnabla.utils.save.save(nnp_file, contents,
                           variable_batch_size=variable_batch_size)
    nnabla.utils.load.load([nnp_file])