code: def cloglog(x):
      """Cloglog function that ensures result is in (0, 1)"""
      eps = np.finfo(float).eps
      result = 1 - pt.exp(-pt.exp(x))
      result = pt.switch(pt.eq(result, 0), eps, result)
      result = pt.switch(pt.eq(result, 1), 1 - eps, result)
  
      return result
  
file_path: bambi/bambi/backend/links.py
imports: import numpy
  import pytensor.tensor
label_desc: Use image node_id 2 for calling a global function with example usage: cloglog(x) and returns: result