code: def check_relative_csv_file_result(
      cache_file_fmt, csvfilename, cachedir
  ):
      # check cache_index.csv
      cache_info_csv_path = os.path.join(cachedir, "cache_index.csv")
      assert os.path.exists(cache_info_csv_path)
  
      with open(cache_info_csv_path, "r") as f:
          for row in csv.reader(f):
              assert os.path.exists(os.path.join(cachedir, row[0]))
  
      # check cache_info.csv
      if cache_file_fmt == ".npy":
          assert os.path.exists(
              os.path.join(cachedir, "cache_info.csv")
          )
  
      # check order.csv
      assert os.path.exists(os.path.join(cachedir, "order.csv"))
  
      # check original.csv
      original_csv_path = os.path.join(cachedir, "original.csv")
      assert os.path.exists(original_csv_path)
  
      with open(original_csv_path, "r") as of, open(
          csvfilename, "r"
      ) as cf:
          for row in of:
              assert row == cf.readline()
  
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 3 for calling a global function with example usage: check_relative_csv_file_result(cache_file_fmt, csvfilename, cachedir) without return types