code: def test_bn_basics(self):
      # vector case
      self.run_layer_test(
          layers.BatchNormalization,
          init_kwargs={
              "center": True,
              "scale": True,
          },
          call_kwargs={"training": True},
          input_shape=(2, 3),
          expected_output_shape=(2, 3),
          expected_num_trainable_weights=2,
          expected_num_non_trainable_weights=2,
          expected_num_seed_generators=0,
          expected_num_losses=0,
          supports_masking=True,
      )
      self.run_layer_test(
          layers.BatchNormalization,
          init_kwargs={
              "center": False,
              "scale": False,
          },
          call_kwargs={"training": True},
          input_shape=(2, 3),
          expected_output_shape=(2, 3),
          expected_num_trainable_weights=0,
          expected_num_non_trainable_weights=2,
          expected_num_seed_generators=0,
          expected_num_losses=0,
          supports_masking=True,
      )
      # image case, with regularizers
      self.run_layer_test(
          layers.BatchNormalization,
          init_kwargs={
              "center": True,
              "scale": True,
              "beta_regularizer": "l2",
              "gamma_regularizer": "l2",
          },
          call_kwargs={"training": True},
          input_shape=(2, 4, 4, 3),
          expected_output_shape=(2, 4, 4, 3),
          expected_num_trainable_weights=2,
          expected_num_non_trainable_weights=2,
          expected_num_seed_generators=0,
          expected_num_losses=2,  # we have 2 regularizers.
          supports_masking=True,
      )
  
file_path: keras/keras/layers/normalization/batch_normalization_test.py
imports: import numpy
  import pytest
  from absl.testing import parameterized
  from keras import backend
  from keras import layers
  from keras import testing
  from keras.losses import MeanSquaredError
  from keras.models import Model
label_desc: Use image node_id 1 for calling the BatchNormalizationTest obj's underlying member method code with example usage: obj.test_bn_basics() without return types