code: def _pad_str_to_list(
      inputs, dims, padding, strides, new_window_shape
  ):
      pad_int = [
          _handle_padding(
              inputs.shape[i + 1],
              strides[i + 1],
              new_window_shape[i],
              padding,
          )
          for i in range(len(dims) - 2)
      ]
      pad_list = [
          (pad_int[i] // 2, pad_int[i] - pad_int[i] // 2)
          for i in range(len(pad_int))
      ]
      pad_list = [(0, 0)] + pad_list + [(0, 0)]
      return pad_list
  
imports: from typing import Optional, Union, Tuple, List, Literal, Sequence, Callable
  import jax
  import jax.lax
  import jax.numpy
  import math
  import ivy
  from ivy import output_to_native_arrays
  from ivy.functional.backends.jax import JaxArray
  from ivy.functional.backends.jax.random import RNG
  from ivy.functional.ivy.experimental.general import _correct_ivy_callable
  from ivy.functional.ivy.layers import _handle_padding, _validate_max_pool_params, _depth_max_pooling_helper
  from ivy.functional.ivy.experimental.layers import _padding_ceil_mode, _get_size
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.func_wrapper import with_unsupported_dtypes
  from .None import backend_version
  from ivy.functional.backends.jax.experimental.manipulation import _to_nested_tuple
label_desc: Use image node_id 2 for calling a global function with example usage: _pad_str_to_list(inputs, dims, padding, strides, new_window_shape) and returns: pad_list