code: def test_correctness(self):
      layer = layers.ActivityRegularization(l1=0.2, l2=0.3)
      layer(2 * np.ones((1,)))
      self.assertLen(layer.losses, 1)
      self.assertAllClose(layer.losses[0], 4 * 0.3 + 2 * 0.2)
  
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 1 for calling the ActivityRegularizationTest obj's underlying member method code with example usage: obj.test_correctness() without return types