code: def test_torch_avg_pool3d(
      *,
      dtype_x_k_s,
      count_include_pad,
      ceil_mode,
      divisor_override,
      test_flags,
      frontend,
      backend_fw,
      fn_tree,
      on_device,
  ):
      input_dtype, x, kernel_size, stride, padding = dtype_x_k_s
      if not isinstance(padding, int):
          padding = [pad[0] for pad in padding]
      helpers.test_frontend_function(
          input_dtypes=input_dtype,
          backend_to_test=backend_fw,
          test_flags=test_flags,
          frontend=frontend,
          fn_tree=fn_tree,
          on_device=on_device,
          input=x[0],
          kernel_size=kernel_size,
          stride=stride,
          padding=padding,
          ceil_mode=ceil_mode,
          count_include_pad=count_include_pad,
          divisor_override=divisor_override,
      )
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_torch/test_nn/test_functional/test_pooling_functions.py
imports: from hypothesis import strategies
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
  import math
label_desc: Use image node_id 8 for calling a global function with example usage: test_torch_avg_pool3d() without return types