docstr: Test 1d local convolution with circular padding and a stride
docstr_tok: ["Test","1d","local","convolution","with","circular","padding","and","a","stride"]
code: def test_circular_conv_local_1d_custom(self):
      """
      Test 1d local convolution with circular padding and a stride
      """
      rng = dict(params=random.key(0))
      x = np.arange(1, 6)
      x = np.expand_dims(x, (0, 2))
      kernel = np.array(((-1, 2, 3), (4, 5, 6)))
      kernel = np.expand_dims(kernel, (2,))
      conv_module = nn.ConvLocal(
          features=1,
          kernel_size=(3,),
          strides=(3,),
          padding="CIRCULAR",
          kernel_init=lambda *_: kernel,
          bias_init=initializers.zeros,
      )
      y, initial_params = conv_module.init_with_output(rng, x)
  
      self.assertEqual(
          initial_params["params"]["kernel"].shape, (2, 3, 1)
      )
      # Compare with manually computed convolution
      correct_ans = np.array(
          (-1 * 5 + 2 * 1 + 3 * 2, 4 * 3 + 5 * 4 + 6 * 5)
      )
      correct_ans = np.expand_dims(correct_ans, (0, 2))
      np.testing.assert_allclose(y, correct_ans)
  
imports: import functools
  import jax
  import jax.numpy
  import numpy
  from absl.testing import absltest, parameterized
  from jax import random
  from jax.nn import initializers
  from flax import linen
label_desc: Use image node_id 23 for calling the LinearTest obj's underlying member method code with example usage: obj.test_circular_conv_local_1d_custom() without return types