code: def beta(
      alpha: Union[float, np.ndarray],
      beta: Union[float, np.ndarray],
      /,
      *,
      shape: Optional[Union[ivy.NativeShape, Sequence[int]]] = None,
      device: Optional[str] = None,
      dtype: Optional[np.dtype] = None,
      seed: Optional[int] = None,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      shape = _check_bounds_and_get_shape(alpha, beta, shape).shape
      if seed is not None:
          np.random.seed(seed)
      return np.asarray(np.random.beta(alpha, beta, shape), dtype=dtype)
  
file_path: ivy/ivy/functional/backends/numpy/experimental/random.py
imports: from typing import Optional, Union, Sequence
  import numpy
  import ivy
  from ivy.functional.ivy.random import _check_bounds_and_get_shape, _check_shapes_broadcastable
label_desc: Use image node_id 2 for calling a global function with example usage: beta() and returns: np