code: def generate_data_in_process(arg):
      problem_name, data_dir, tmp_dir, task_id = arg
      problem = registry.problem(problem_name)
      problem.generate_data(data_dir, tmp_dir, task_id)
  
file_path: tensor2tensor/tensor2tensor/bin/t2t_datagen.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import multiprocessing
  import os
  import random
  import tempfile
  import numpy
  from tensor2tensor import problems
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.envs import env_problem_utils
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import usr_dir
  import tensorflow.compat.v1
label_desc: Use image node_id 4 for calling a global function with example usage: generate_data_in_process(arg) without return types