code: def clamp(lower: int, value: int, upper: int) -> int:
      """Given a value and lower/upper bounds, 'clamp' the value so that
      it satisfies lower <= value <= upper."""
      return max(lower, min(value, upper))
  
imports: import array
  import sys
  import warnings
  from random import Random
  from typing import Callable, Dict, Generic, Iterable, Iterator, List, Optional, Sequence, Tuple, TypeVar, Union, overload
  from hypothesis.errors import HypothesisWarning
label_desc: Use image node_id 5 for calling a global function with example usage: clamp(lower, value, upper) and returns: max