code: def _geometric(p):
      return int(math.log(rnd.uniform(0, 1)) / math.log(1 - p)) + 1
  
file_path: dask/dask/bag/random.py
imports: from __future__ import annotations
  import heapq
  import math
  import random
  from functools import partial
  from itertools import islice
  from dask.bag.core import Bag
label_desc: Use image node_id 10 for calling a global function with example usage: _geometric(p) and returns: unknown