code: def get_linkinv(link, invlinks):
      """Get the inverse of the link function as needed by PyMC
  
      Parameters
      ----------
      link : bmb.Link
          A link function object. It may contain the linkinv function that the backend uses.
      invlinks : dict
          Keys are names of link functions. Values are the built-in link functions.
  
      Returns
      -------
          callable
          The link function
      """
      # If the name is in the backend, get it from there
      if link.name in invlinks:
          invlink = invlinks[link.name]
      # If not, use whatever is in `linkinv_backend`
      else:
          invlink = link.linkinv_backend
      return invlink
  
file_path: bambi/bambi/backend/utils.py
imports: import inspect
  from functools import partial
  import pytensor.tensor
  import pymc
label_desc: Use image node_id 5 for calling a global function with example usage: get_linkinv(link, invlinks) and returns: invlink