code: def get_mask(shape, device, prob, seed=None):
      mask = ivy.where(
          ivy.random_uniform(shape=shape, device=device, seed=seed)
          < prob,
          0.0,
          1.0,
      )
      return mask
  
file_path: ivy/ivy/functional/frontends/paddle/nn/functional/common.py
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 5 for calling a global function with example usage: get_mask(shape, device, prob, seed) and returns: mask