code: def hardswish(
      x: np.ndarray,
      /,
      *,
      complex_mode: Literal["split", "magnitude", "jax"] = "jax",
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      max_x_3 = np.maximum(x + 3, 0, dtype=x.dtype)
      return (
          x * np.minimum(max_x_3, 6, out=out, dtype=x.dtype) / 6
      ).astype(x.dtype)
  
file_path: ivy/ivy/functional/backends/numpy/activations.py
imports: from typing import Optional, Union, Literal
  import numpy
  import ivy
  from ivy.functional.backends.numpy.helpers import _scalar_output_to_0d_array
label_desc: Use image node_id 10 for calling a global function with example usage: hardswish() and returns: unknown