class_docstr: misc unittest
docstr: generate sythetic data unittest
code: def test_generate_synthetic_data(self):
      """generate sythetic data unittest"""
      input_shape = tf.TensorShape([2, 3])
      input_value = 1
      input_dtype = tf.float32
      label_shape = tf.TensorShape([2])
      label_value = 2
      label_dtype = tf.int32
      nepoch = 2
  
      data_set = misc.generate_synthetic_data(
          input_shape,
          input_value,
          input_dtype,
          label_shape,
          label_value,
          label_dtype,
          nepoch,
      )
  
      iterator = data_set.make_one_shot_iterator()
  
      with self.cached_session(use_gpu=False, force_gpu=False):
          data, label = iterator.get_next()
          self.assertAllEqual(
              data.eval(), np.ones(shape=input_shape, dtype=np.float32)
          )
          self.assertAllEqual(
              label.eval(),
              2 * np.ones(shape=label_shape, dtype=np.float32),
          )
  
          with self.assertRaises(tf.errors.OutOfRangeError):
              data.eval()
  
file_path: delta/delta/utils/misc_test.py
imports: import numpy
  import delta.compat
  from delta.utils import misc
label_desc: Use image node_id 7 for calling the MiscTest obj's underlying member method code with example usage: obj.test_generate_synthetic_data() without return types