import tensorflow as tf

            cur_batch_size = dynamic_image_shape[0]

            # Get static shape of image.
            # shape = (3,)
            static_image_shape = params["generator_projection_dims"]
            print_obj(
                "minibatch_stddev", "static_image_shape", static_image_shape
            )

            # cur_batch_size must be divisible by or smaller than group_size.
            divisbility_condition = tf.equal(
                x=tf.mod(x=cur_batch_size, y=group_size),
                y=0,
                name="divisbility_condition"
            )

            less_than_condition = tf.less(
                x=cur_batch_size, y=group_size, name="less_than_condition"
            )

            any_condition = tf.reduce_any(
                input_tensor=[divisbility_condition, less_than_condition],
