code: def get_h_inv(dim: int) -> float:
      f = (
          lambda a, b: ((1.0 + a * a) * exp(a * a / 2.0) / 0.24)
          - 10.0
          - dim
      )
      f_prime = (
          lambda a: (1.0 / 0.24) * a * exp(a * a / 2.0) * (3.0 + a * a)
      )
      h_inv = 1.0
      while abs(f(h_inv, dim)) > 1e-10:
          h_inv = h_inv - 0.5 * (f(h_inv, dim) / f_prime(h_inv))
      return h_inv
  
imports: import math
  import numpy
  from typing import Union
  from typing import Optional
  import logging
  import jax
  import jax.numpy
  from evojax.algo.base import NEAlgorithm
  from evojax.util import create_logger
label_desc: Use image node_id 1 for calling a global function with example usage: get_h_inv(dim) and returns: h_inv