code: def clip(val):
      """Standard clamping of a value into a fixed range (in this case -4.0 to
      4.0)
  
      Parameters
      ----------
      val: float
          The value to be clamped.
  
      Returns
      -------
      The clamped value, now fixed to be in the range -4.0 to 4.0.
      """
      if val > 4.0:
          return 4.0
      elif val < -4.0:
          return -4.0
      else:
          return val
  
file_path: umap/umap/layouts.py
imports: import numpy
  import numba
  import umap.distances
  from umap.utils import tau_rand_int
  from tqdm.auto import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: clip(val) and returns: int, unknown, val