<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clip_image(image, clip_min, clip_max):
 """ Clip an image, or an image batch, with upper and lower threshold. """

  return np.minimum(np.maximum(clip_min, image), clip_max)