code: def max_pool(
      value,
      ksize,
      strides,
      padding,
      data_format="NHWC",
      name=None,
      input=None,
  ):
      if input is not None and value is not None:
          raise ivy.utils.exceptions.IvyException(
              "Cannot specify both 'value' and 'input'."
          )
      return tf_nn.max_pool2d(
          input if input is not None else value,
          ksize,
          strides,
          padding,
          data_format=data_format,
      )
  
file_path: ivy/ivy/functional/frontends/tensorflow/compat/v1/nn.py
imports: import ivy
  from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_supported_dtypes, with_unsupported_dtypes
  import ivy.functional.frontends.tensorflow.nn
label_desc: Use image node_id 3 for calling a global function with example usage: max_pool(value, ksize, strides, padding, data_format, name, input) and returns: tf_nn