code: def generate_csv_csv(filename, num_of_data, data_size):
      with create_temp_with_dir(filename) as csvfilename:
          datadir = os.path.dirname(csvfilename)
          with open(csvfilename, "w") as f:
              f.write("x:data, y\n")
              for n in range(0, num_of_data):
                  x = numpy.ones(data_size).astype(numpy.uint8) * n
                  data_name = "data_{}.csv".format(n)
                  with open(
                      os.path.join(datadir, data_name), "w"
                  ) as df:
                      for d in x:
                          df.write("{}\n".format(d))
                  f.write("{}, {}\n".format(data_name, n))
          yield csvfilename
  
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 2 for calling a global function with example usage: generate_csv_csv(filename, num_of_data, data_size) without return types