code: def prod(
      x: np.ndarray,
      /,
      *,
      axis: Optional[Union[int, Sequence[int]]] = None,
      dtype: Optional[np.dtype] = None,
      keepdims: bool = False,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      dtype = ivy.as_native_dtype(dtype)
      if dtype is None:
          dtype = _infer_dtype(x.dtype)
      axis = tuple(axis) if isinstance(axis, list) else axis
      return np.asarray(
          np.prod(
              a=x, axis=axis, dtype=dtype, keepdims=keepdims, out=out
          )
      )
  
file_path: ivy/ivy/functional/backends/numpy/statistical.py
imports: import numpy
  from typing import Union, Optional, Sequence
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  from ivy.functional.backends.numpy.helpers import _scalar_output_to_0d_array
  from .None import backend_version
  from ivy.utils.einsum_parser import legalise_einsum_expr
label_desc: Use image node_id 5 for calling a global function with example usage: prod() and returns: np