code: def test_avgpool1d_layer(
      *,
      x_k_s_p,
      test_gradients,
      on_device,
      class_name,
      method_name,
      ground_truth_backend,
      init_flags,
      method_flags,
      backend_fw,
  ):
      input_dtype, x, kernel_size, stride, padding = x_k_s_p
      helpers.test_method(
          ground_truth_backend=ground_truth_backend,
          backend_to_test=backend_fw,
          init_flags=init_flags,
          method_flags=method_flags,
          init_all_as_kwargs_np={
              "kernel_size": kernel_size,
              "stride": stride,
              "padding": padding,
          },
          method_input_dtypes=input_dtype,
          method_all_as_kwargs_np={"inputs": x[0]},
          class_name=class_name,
          method_name=method_name,
          test_gradients=test_gradients,
          on_device=on_device,
      )
  
imports: import numpy
  from hypothesis import assume
  from hypothesis import strategies
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy.data_classes.container import Container
  from ivy.functional.ivy.gradients import _variable
  from ivy.functional.ivy.layers import _deconv_length
  from ivy_tests.test_ivy.helpers import handle_method
  from ivy_tests.test_ivy.helpers.assertions import assert_same_type_and_shape
  from ivy_tests.test_ivy.test_functional.test_experimental.test_nn import test_layers
  from ivy_tests.test_ivy.test_functional.test_experimental.test_nn.test_layers import _valid_dct
label_desc: Use image node_id 11 for calling a global function with example usage: test_avgpool1d_layer() without return types