code: def create_temp_with_dir(filename):
      tmpdir = tempfile.mkdtemp()
      print("created {}".format(tmpdir))
      csvfilename = os.path.join(tmpdir, filename)
      yield csvfilename
      rmtree(tmpdir, ignore_errors=True)
      print("deleted {}".format(tmpdir))
  
file_path: nnabla/python/test/utils/conftest.py
imports: from __future__ import print_function
  import pytest
  from contextlib import contextmanager
  from shutil import rmtree
  import numpy
  import os
  import tempfile
  import warnings
  from nnabla.utils.image_utils import imsave
label_desc: Use image node_id 1 for calling a global function with example usage: create_temp_with_dir(filename) without return types