code: def generate_test_data(problem, tmp_dir):
      problem.generate_data(tmp_dir, tmp_dir)
      return [problem.filepattern(tmp_dir, tf_estimator.ModeKeys.TRAIN)]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import tempfile
  import numpy
  from six.moves import range
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import data_reader
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
label_desc: Use image node_id 1 for calling a global function with example usage: generate_test_data(problem, tmp_dir) and returns: list