code: def affine_softplus(real, lo=0, ref=1):
      """Maps real numbers to (lo, infinity), where 0 maps to ref."""
      if not lo < ref:
          raise ValueError("`lo` (%g) must be < `ref` (%g)" % (lo, ref))
      shift = inv_softplus(1.0)
      scale = (ref - lo) * jax.nn.softplus(real + shift) + lo
      return scale
  
imports: import collections
  from concurrent import futures
  import contextlib
  import functools
  import time
  from typing import List, Union
  import jax
  from jax import tree_util
  import jax.numpy
  import numpy
  from scipy import interpolate
  from scipy.spatial import transform
  import tqdm
label_desc: Use image node_id 13 for calling a global function with example usage: affine_softplus(real, lo, ref) and returns: scale