code: def create_temp_with_dir():
      tmpdir = tempfile.mkdtemp()
      yield tmpdir
      rmtree(tmpdir, ignore_errors=True)
  
file_path: nnabla/python/test/utils/test_create_cache.py
imports: from __future__ import absolute_import
  import os
  import csv
  import pytest
  import tempfile
  from shutil import rmtree
  from contextlib import contextmanager, closing
  from nnabla.config import nnabla_config
  from nnabla.utils.create_cache import CreateCache
  from nnabla.utils.data_source_implements import CacheDataSource, CsvDataSource
  from nnabla.testing import assert_allclose
  from .conftest import test_data_csv_csv_20, test_data_csv_png_20
label_desc: Use image node_id 1 for calling a global function with example usage: create_temp_with_dir() without return types