code: def zipf(a, size=None):
      if a <= 1:
          return 0
      u = ivy.random_uniform(
          low=0.0, high=1.0, shape=size, dtype="float64"
      )
      return ivy.floor(ivy.pow(1 / (1 - u), 1 / a))
  
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 35 for calling a global function with example usage: zipf(a, size) and returns: ivy, int