code: def _save_img_file(path, size, color):
      if color:
          img = np.random.randint(
              0, 255, size=(3,) + size, dtype=np.uint8
          )
      else:
          img = np.random.randint(
              0, 255, size=(1,) + size, dtype=np.uint8
          )
      write_image(img, path)
  
imports: import numpy
  import os
  import shutil
  import tempfile
  import unittest
  from chainer import testing
  from chainercv.datasets import directory_parsing_label_names
  from chainercv.datasets import DirectoryParsingLabelDataset
  from chainercv.utils import assert_is_label_dataset
  from chainercv.utils import write_image
label_desc: Use image node_id 1 for calling a global function with example usage: _save_img_file(path, size, color) without return types