code: def create_random_testcase(shape):
      batch = tf.random.uniform(shape)
      mean_accross_batches_squared = tf.reduce_mean(batch, 0) ** 2
      mean_accross_squared_batches = tf.reduce_mean(batch**2, 0)
  
      expected_stddeviation = tf.reduce_mean(
          tf.sqrt(
              mean_accross_squared_batches
              - mean_accross_batches_squared
          )
      )
      expected = tf.concat(
          [
              batch,
              tf.broadcast_to(
                  expected_stddeviation, batch.shape[:-1] + [1]
              ),
          ],
          3,
      )
      return batch, expected
  
file_path: graphics/tensorflow_graphics/projects/gan/minibatch_standarddeviation_test.py
imports: import tensorflow
  from tensorflow_graphics.projects.gan import minibatch_standarddeviation
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 1 for calling a global function with example usage: create_random_testcase(shape) and returns: batch,  expected