code: def max_pool1d(
      input,
      kernel_size,
      stride=None,
      padding=0,
      dilation=1,
      ceil_mode=False,
      return_indices=False,
  ):
      if stride is None:
          stride = kernel_size
      if not isinstance(padding, int):
          padding = [(pad, pad) for pad in padding]
      return ivy.max_pool1d(
          input,
          kernel_size,
          stride,
          padding,
          data_format="NCW",
          dilation=dilation,
          ceil_mode=ceil_mode,
      )
  
file_path: ivy/ivy/functional/frontends/torch/nn/functional/pooling_functions.py
imports: from functools import reduce
  import ivy
  from ivy import with_unsupported_dtypes
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 9 for calling a global function with example usage: max_pool1d(input, kernel_size, stride, padding, dilation, ceil_mode, return_indices) and returns: ivy