code: def relu6(x: ArrayLike) -> Array:
      r"""Rectified Linear Unit 6 activation function.
  
      Computes the element-wise function
  
      .. math::
        \mathrm{relu6}(x) = \min(\max(x, 0), 6)
  
      except under differentiation, we take:
  
      .. math::
        \nabla \mathrm{relu}(0) = 0
  
      and
  
      .. math::
        \nabla \mathrm{relu}(6) = 0
  
      Args:
        x : input array
  
      Returns:
        An array.
  
      See also:
        :func:`relu`
      """
      return jnp.minimum(jnp.maximum(x, 0), 6.0)
  
imports: from __future__ import annotations
  from functools import partial
  import operator
  import numpy
  from typing import Any
  import jax
  import jax.numpy
  from jax import custom_jvp
  from jax import lax
  from jax._src import config
  from jax._src import core
  from jax._src import dtypes
  from jax._src import util
  from jax._src.core import AxisName
  from jax._src.numpy import util
  from jax._src.typing import Array, ArrayLike
  from jax._src.ops.special import logsumexp
label_desc: Use image node_id 23 for calling a global function with example usage: relu6(x) and returns: jnp