code: def _get_ldj_ratio_fn(cls, registry):
      ldj_ratio_fn = None
      for ref_cls in inspect.getmro(cls):
          if ref_cls in registry:
              ldj_ratio_fn = registry[ref_cls]
              break
      return ldj_ratio_fn
  
file_path: probability/tensorflow_probability/python/bijectors/ldj_ratio.py
imports: import inspect
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector
  from tensorflow_probability.python.internal import prefer_static
label_desc: Use image node_id 4 for calling a global function with example usage: _get_ldj_ratio_fn(cls, registry) and returns: ldj_ratio_fn