code: def cond(x, p=None, name=None):
      ret = ivy.cond(x, p=p, out=name)
      if ret.shape == ():
          ret = ret.reshape((1,))
      return ret
  
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from ivy.functional.frontends.paddle import promote_types_of_paddle_inputs
  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: cond(x, p, name) and returns: ret