code: def test_activity_regularization_basics(self):
      self.run_layer_test(
          layers.ActivityRegularization,
          {"l1": 0.1, "l2": 0.2},
          input_shape=(2, 3),
          input_dtype="float32",
          expected_output_shape=(2, 3),
          expected_num_trainable_weights=0,
          expected_num_non_trainable_weights=0,
          expected_num_seed_generators=0,
          expected_num_losses=1,
          supports_masking=True,
      )
  
file_path: keras/keras/layers/regularization/activity_regularization_test.py
imports: import numpy
  import pytest
  from keras import layers
  from keras.testing import test_case
label_desc: Use image node_id 2 for calling the ActivityRegularizationTest obj's underlying member method code with example usage: obj.test_activity_regularization_basics() without return types