code: def LeakyRelu(a=0.01):
      r"""Returns a ReLU-like layer with linear nonzero outputs for negative inputs.
  
    .. math::
        f(x) = \left\{ \begin{array}{cl}
            ax & \text{if}\ x \leq 0, \\
            x  & \text{otherwise}.
        \end{array} \right.
  
    Args:
      a: Slope of line for negative inputs.
    """
      return Fn("LeakyRelu", lambda x: jnp.where(x >= 0, x, a * x))
  
imports: from trax import fastmath
  from trax.fastmath import numpy
  from trax.layers import base
  from trax.layers.assert_shape import assert_shape
  from trax.layers.base import Fn
label_desc: Use image node_id 3 for calling a global function with example usage: LeakyRelu(a) and returns: Fn