code: def clamp(x: float, minimum=0.0, maximum=1.0):
      """Clamp a number.
  
      This is a synonym of clipping.
  
      Parameters
      ----------
      x
      minimum
      maximum
  
      """
      return max(min(x, maximum), minimum)
  
imports: from __future__ import annotations
  import functools
  import itertools
  import math
  import operator
  import numpy
  import scipy
label_desc: Use image node_id 10 for calling a global function with example usage: clamp(x, minimum, maximum) and returns: max