code: def _max_pool(name: str, expand_size: int, return_indices: bool):
      @symbolic_helper.quantized_args(
          True, False, False, False, False, False
      )
      @symbolic_helper.parse_args("v", "is", "is", "is", "is", "i")
      def symbolic_fn(
          g: jit_utils.GraphContext,
          input: _C.Value,
          kernel_size: Sequence[int],
          stride: Sequence[int],
          padding: Union[int, Sequence[int]],
          dilation: Sequence[int],
          ceil_mode: bool,
      ):
          (
              kernel_shape,
              strides,
              pads,
              dilations,
          ) = _adjust_attributes_of_max_pool(
              expand_size, kernel_size, stride, padding, dilation
          )
  
          if return_indices:
              return _aten_max_pool_with_indices_onnx(
                  g,
                  input,
                  kernel_shape,
                  strides,
                  pads,
                  dilations,
                  ceil_mode,
                  expand_size + 1,
                  ([1] * expand_size),
                  ([0] * expand_size),
                  ([2 + i for i in range(expand_size)]),
              )
          else:
              return _aten_max_pool_onnx(
                  g,
                  input,
                  kernel_shape,
                  strides,
                  pads,
                  dilations,
                  ceil_mode,
                  expand_size + 1,
              )
  
      return symbolic_fn
  
imports: from __future__ import annotations
  import functools
  import sys
  import warnings
  from typing import List, Optional, Sequence, Tuple, Union
  import torch
  import torch._C._onnx
  import torch.onnx
  from torch import _C
  from torch.onnx import _constants, _type_utils, errors, symbolic_helper, symbolic_opset9
  from torch.onnx._globals import GLOBALS
  from torch.onnx._internal import _beartype, jit_utils, registration
label_desc: Use image node_id 10 for calling a global function with example usage: _max_pool(name, expand_size, return_indices) and returns: symbolic_fn, _aten_max_pool_with_indices_onnx, _aten_max_pool_onnx