code: def view_data():
      ds = RepeatedData(get_data("train"), -1)
      ds.reset_state()
      for ims, edgemaps in ds:
          for im, edgemap in zip(ims, edgemaps):
              assert (
                  im.shape[0] % 16 == 0 and im.shape[1] % 16 == 0
              ), im.shape
              cv2.imshow("im", im / 255.0)
              cv2.waitKey(1000)
              cv2.imshow("edge", edgemap)
              cv2.waitKey(1000)
  
imports: import argparse
  import numpy
  import os
  import cv2
  import tensorflow
  from tensorpack import *
  from tensorpack.dataflow import dataset
  from tensorpack.tfutils import gradproc, optimizer
  from tensorpack.tfutils.summary import add_moving_summary, add_param_summary
  from tensorpack.utils.gpu import get_num_gpu
  from tensorpack.utils import logger
label_desc: Use image node_id 4 for calling a global function with example usage: view_data() without return types