code: def _check_arguments(
      mode,
      pad_width,
      stat_length,
      constant_values,
      end_values,
      reflect_type,
  ):
      supported_modes = [
          "constant",
          "dilated",
          "edge",
          "linear_ramp",
          "maximum",
          "mean",
          "median",
          "minimum",
          "reflect",
          "symmetric",
          "wrap",
          "empty",
      ]
      ivy.utils.assertions.check_true(
          callable(mode) or mode in supported_modes,
          message=f"Only modes {supported_modes} are supported. Got {mode}.",
      )
      _check_tuple_arg(
          pad_width,
          "pad_width",
          force_positive=mode != "dilated",
          force_integer=True,
      )
      if mode in ["maximum", "mean", "median", "minimum"]:
          _check_tuple_arg(
              stat_length,
              "stat_length",
              force_positive=True,
              force_integer=True,
          )
      elif mode in ["constant", "dilated"]:
          _check_tuple_arg(constant_values, "constant_values")
      elif mode == "linear_ramp":
          _check_tuple_arg(end_values, "end_values")
      elif mode in ["reflect", "symmetric"]:
          ivy.utils.assertions.check_true(
              reflect_type in ["even", "odd"],
              message=(
                  f"Only reflect types ['even', 'odd'] are supported. Got {reflect_type}."
              ),
          )
  
imports: from typing import Optional, Union, Tuple, Iterable, Sequence, Callable, Any, Literal, List
  from numbers import Number
  from functools import partial
  import math
  import ivy
  from ivy.func_wrapper import handle_out_argument, handle_partial_mixed_function, to_native_arrays_and_back, inputs_to_native_shapes, handle_nestable, handle_array_like_without_promotion, handle_view, inputs_to_ivy_arrays, handle_array_function, handle_device, handle_backend_invalid
  from ivy.functional.ivy.general import _numel
  from ivy.utils.backend import current_backend
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 25 for calling a global function with example usage: _check_arguments(mode, pad_width, stat_length, constant_values, end_values, reflect_type) without return types