code: def logseries(p=0, size=None):
      if p < 0 or p >= 1:
          raise ValueError(
              "p value must be in the open interval (0, 1)"
          )
      r = ivy.log(1 - p)
      u = ivy.random_uniform(low=0.0, high=1.0, shape=size)
      v = ivy.random_uniform(low=0.0, high=1.0, shape=size)
      q = 1 - ivy.exp(r * u)
      ret = 1 + ivy.log(v) / ivy.log(q)
      return ret
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, from_zero_dim_arrays_to_scalar
  from ivy import with_supported_dtypes
label_desc: Use image node_id 14 for calling a global function with example usage: logseries(p, size) and returns: ret